Run ❯
Get your
own Python
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
x = ("apple", "banana", "cherry") y = list(x) y[1] = "kiwi" x = tuple(y) print(x)
x
x
=
(
"apple"
,
"banana"
,
"cherry"
)
y
=
list
(
x
)
y
[
1
]
=
"kiwi"
x
=
tuple
(
y
)
print
(
x
)
("apple", "kiwi", "cherry")