mutable sequences

Sharan Basappa sharan.basappa at gmail.com
Wed Jun 13 22:56:49 EDT 2018


The term mutable appears quite often in Python.
Can anyone explain what is meant by mutable and immutable sequences.

For example, Python lists are mutable.

BTW, is the below explanation correct (it is taken from a book I am reading)

Python lists are mutable sequences. They are very similar to tuples, but they
don't have the restrictions due to immutability.

It says lists are mutable and then says they are immutable???




More information about the Python-list mailing list