Python, Data Science, Data Engineering, Programming, Coding.
Modifying a tuple is not possible tup2[0] = 0 # --> TypeError: 'tuple' object does not support item assignment Output: 1 (1, 2) 1 2 3 4 5 --------------------------------------------------------------------------- TypeError Traceback (most recent call last) /projects/Cheatsheet/My Python