Python list()

Facebooktwitterredditpinterestlinkedinmailby feather

The list() class in Python creates a list object where the list object is a collection which is ordered and changeable.

Syntax

Parameter

Iterable: It is a required parameter which represents a sequence, collection or an iterator object

Return

It returns a list of the specified object.

Example 1

Output

Example 2

Output

Facebooktwitterredditpinterestlinkedinmailby feather