python modify tuple code example Example: update value in tuple python x = ("apple", "banana", "cherry") y = list(x) y[1] = "kiwi" x = tuple(y)