Does python have immutable lists?
Suppose I wish to have the functionality of an ordered collection of elements, but which I want to guarantee will not change, how c
But if there is a tuple of arrays and tuples, then the array inside a tuple can be modified.
>>> a ([1, 2, 3], (4, 5, 6)) >>> a[0][0] = 'one' >>> a (['one', 2, 3], (4, 5, 6))