You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
110 B
8 lines
110 B
def gen():
|
|
yield from (1, 2, 3)
|
|
|
|
def gen2():
|
|
yield from gen()
|
|
|
|
print(list(gen()))
|
|
print(list(gen2()))
|
|
|