circuitpython/tests/basics/gen-yield-from-iter.py

9 lines
110 B
Python
Raw Normal View History

def gen():
yield from (1, 2, 3)
def gen2():
yield from gen()
print(list(gen()))
print(list(gen2()))