sidorenkov

Answer #3

Aug 3rd, 2021
634
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def multipliers():
  2.     return [lambda x, i=i: i * x for i in range(4)]
  3.  
  4. print([m(2) for m in multipliers()])
RAW Paste Data