maxwello
3
Q:

changing tuple values

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

print(x)
2

Tags

New to Communities?

Join the community