top of page
Search

PYTHON CODING

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Aug 5, 2025
  • 1 min read

def infinite():

i = 0

while True:

yield i

i += 1

g = infinite()

for _ in range(3):

print(next(g))


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

0

1

2

[Done] exited with code=0 in 0.052 seconds

Try to run it.
Try to run it.
















 
 
 

Recent Posts

See All

1 Comment


Guest
Aug 05, 2025

Did you guess it?

Like
bottom of page