PYTHON CODING
- waclaw_koscielniak
- 1 day ago
- 1 min read
def early_exit():
for i in range(10):
if i > 3:
return
yield i
print(list(early_exit()))
[Running] python3 -u "/Users/name/tast/test83.py"
[0, 1, 2, 3]
[Done] exited with code=0 in 0.055 seconds

ToucanSway
Try to run it.