Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

changing tuple values

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

print(x)
 
PREVIOUS NEXT
Tagged: #changing #tuple #values
ADD COMMENT
Topic
Name
2+1 =