Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- funcs = []
- for s in ["hello","world"]:
- func = lambda x: print(s)
- funcs.append(func)
- funcs[0](None)
- funcs[1](None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement