top of page
Search

PYTHON CODING

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

Try it today.
Try it today.

 
 
 

Comments


bottom of page