Web Analytics

Python list() Function

Type Conversion Sequence

The list() function creates a list object. A list is a collection which is ordered and changeable.

Syntax

list(iterable)

Parameters

Parameter Description
iterable Optional. A sequence, collection or an iterator object

Return Value

A list object.

Example

Using the list() function:

Output
Click Run to execute your code

Related Functions