demo_tuple_change.py:
x = ("apple", "banana", "cherry") y = list(x) y[1] = "kiwi" x = tuple(y) print(x)
C:\Users\My Name>python demo_tuple_change.py
("apple", "kiwi", "cherry")