PYTHON CODING
- waclaw_koscielniak

- Jul 9
- 1 min read
def g():
yield 1
yield 2
x = g()
print(next(x))
print(next(x))
print(next(x))
[Running] python3 -u "/Users/name/test/test47.py"
1
2
StopIteration
The process completed with exit code 1 in 0.051 seconds.



Comments