top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Jul 21
  • 1 min read

def track_yields():

for i in range(3):

print(f"Yielding {i}")

yield i

print("Done")


for val in track_yields():

pass


[Running] python3 -u "/Users/name/test/test73.py"

Yielding 0

Yielding 1

Yielding 2

Done

[Done] exited with code=0 in 0.051 seconds

Python coding. Try it.
Python coding. Try it.

















 
 
 

1 Comment


Guest
Jul 21

Try to run it.

Like
bottom of page