A list comprehension makes three lambda functions. funcs = [lambda x: x * i for i in range(1, 4)] print([f(10) for f in funcs]) What does the program print?
[0, 10, 20]
[10, 20, 30]
[30, 30, 30]
NameError
Log in to join the discussion.
Loading…