Register - Login - Forgotten Password

Lesson 19: Tuples and When Data Should Not Change

What if we want to store a group of values but do not want its items accidentally changed? Python provides tuples for this purpose: ordered groups whose own item references cannot be replaced, added or removed in place. They are related to lists, but a tuple is not simply another name for a list. The key question is how order and immutability describe different features of the same sequence.

Lesson 19: Tuples and When Data Should Not Change

This lesson just one in the category Python Programming Level 1. To access this lesson you need to have a valid learner account, ask your parent to register you now.