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