Lists are a fundamental data type in the Python programming language. A list is a mutable sequence that is typically a collection of homogeneous items. Mutable means that you can change a list after its creation. You will frequently see lists that contain other lists. These are known as nested lists. You will also see lists that contain all manner of other data types, such as dictionaries, tuples or objects.
Let’s find out how you can create a list!
There are several ways to create a list. You may construct a list in any of the following ways:
- Using a pair of square brackets with nothing inside creates an empty list: 
- Using square brackets with comma-separated items: [1, 2, 3]
- Using a list comprehension: [x for x in iterable]
- Using the list() function: list(iterable)
An iterable is a sequence, a container that supports iteration or an iterator object. Lists themselves are sequences as are strings.
Let’s look at a few examples of creating a list so you can see it in action: Continue reading Python 101: Learning About Lists