Last active
April 18, 2025 16:58
-
-
Save rec/99c28617cc787e77d1481aaec8cacbc9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
funcs = [] | |
for i in range(10): | |
def func(i=i): | |
return i | |
funcs.append(func) | |
print(*(f() for f in funcs)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment