Mutable and immutable types

s = 'cat'; s[0] = 'b' → error

You can also choose a level by clicking a star.

About the course

Description
A list can be changed in place, a string and a tuple cannot – does the program end with an error?
More information
Working with lists and strings in Python. Indexes start at zero.
Sample question
s = 'cat'; s[0] = 'b' → error
Author
Jiří Preisler
Version
1.0