Program - what if we put a mutable object into the immutable tuple


Topic: Program - what if we put a mutable object into the immutable tuple

Solution

tup1 = ([],)
print('tup before: ', tup1)
tup1[0] += [1]



List all Python Programs