Data Structures Lists
No account is required. Learn the material, try the examples, and mark it complete locally when you are ready to move on.
Python List
If we store an integer and give it a name x. Then that's just one element right. There are often times when we need to store multiple elements and store them as one single variable name.
a = 4
print(a)4
list_a = [4, 4, 3, 5]
print(list_a)[4, 4, 3, 5]
As you've seen the syntax of creating a list is pretty simple. Just put together any number of elements inside the square brackets and give that square bracket a name.