You can't add or delete elements to tuple but, the existing elements can be modified if they are mutable type.
You can change existing items in list or add or delete items in List as it is mutable.
>>> tup = (1,'a',[1,2]) >>> tup[2][1] 2 >>> tup[2][1] = 3 >>> tup (1, 'a', [1, 3]) >>> tup[2].append(4) >>> tup (1, 'a', [1, 3, 4])Here, the list in the tuple can be modified but not rest of the elements.
You can change existing items in list or add or delete items in List as it is mutable.