Питон yeild
def infinite_sequence():
num = 0
while True:
yield num
num += 1
Biddls
def infinite_sequence():
num = 0
while True:
yield num
num += 1