top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Jul 16
  • 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

Try to run it.
Try to run it.

















 
 
 

1 Comment


Guest
Jul 16

Try to run it.

Like
bottom of page