← All terms
Python

List (Python)

A list in Python is an ordered, mutable collection that can hold items of any type.

fruits = ["apple", "banana", "cherry"]
fruits.append("date")
print(fruits[0])  # "apple"

Key properties: