Type something to search...

Python Lists and Tuples

Python Lists

Lists are mutable collections of items.

Example:

fruits = ["apple", "banana", "cherry"]
fruits.append("orange")
print(fruits)

Python Tuples

Tuples are immutable collections of items.

Example:

coordinates = (10, 20)
print(coordinates)

Next Steps

In the next tutorial, we will explore Python Dictionaries.

Next: Python Dictionaries →