Question 36
What is the output of the following tuple modification attempt?
t = ([1, 2], 3)
t[0].append(4)
print(t)
Although the tuple structure itself is immutable, the element at t[0] is a mutable list object. Calling .append(4) mutates the inner list successfully to [1, 2, 4].