Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def multipliers():
- return [lambda x: i * x for i in range(4)]
- print([m(2) for m in multipliers()])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement