changing tuple values
snippet in c

changing tuple values

user4956

x = ("apple", "banana", "cherry")
y = list(x)
y[1] = "kiwi"
x = tuple(y)

print(x)