As you saw previously, lists can be created in several ways. The simplest of them is to enclose the elements of the list in square brackets [].
Here, you can see several flavors of lists:
# Empty list [] # List containing numbers [2, 4, 6, 8, 10] # List with mixed types ["one", 2, "three", ["five", 6]]
The first is an initialization of an empty list. The second is a list whose elements are numbers. The last one is an example of a list that contains several types. It has numbers, strings, and sublists inside of it.