Lists are ordered, mutable collections: [1, 2, 3]. Use append() to add, pop() to remove, and len() for the count. List comprehensions like [x*2 for x in range(10)] create new lists very concisely.
Python Lists
fruits = ["apple", "banana", "cherry"]
fruits.append("mango")
fruits.insert(0, "avocado")
fruits.remove("banana")
print(fruits[0]) # avocado
print(fruits[-1]) # mango
print(fruits[1:3]) # slice
print(len(fruits))
# List comprehension
squares = [x**2 for x in range(10)]