mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
7 lines
98 B
Python
7 lines
98 B
Python
def f(n):
|
|
for i in range(n):
|
|
yield i
|
|
|
|
a = [i for i in f(6)]
|
|
|
|
assert a == [0,1,2,3,4,5] |