Practice
Learn
← Quit
0 / 0 correct
Python
Hard
1 of 40
What does this print?
fs = [lambda: i for i in range(3)] print([f() for f in fs])
A
NameError
B
[0, 1, 2]
C
[2, 2, 2]
D
[0, 0, 0]