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:
- Ordered — items keep their insertion order
- Mutable — you can add, remove, or change items after creation
- Allows duplicates — the same value can appear more than once
- Indexed — access items by position, starting at 0