Files
  • main.py
main.py
1
2
3
4
5
6
7
x = [1, 2, 3, 4]
y = iter(x)
print(next(y))
print(next(y))
print(next(y))
x[-1] = 0
print(next(y))