In [1]:
immutable = ("element", 1)
In [2]:
hash(immutable)
Out[2]:
-47184001353621217
In [3]:
immutable[1] = 2
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) Cell In[3], line 1 ----> 1 immutable[1] = 2 TypeError: 'tuple' object does not support item assignment