notebook.community
Edit and run
Tuples are the same as lists, except they are immutable. The immutability applies only to the tuple, not to the objects themselves...
In [5]: a = [1] x = (a,2,3) print x a[0] = 5 print x
a = [1] x = (a,2,3) print x a[0] = 5 print x
([1], 2, 3) ([5], 2, 3)