What is the output of the following Python code?
fs = [lambda: i for i in range(3)]
print([f() for f in fs])- A[0, 1, 2]
- B[3, 3, 3]
- C[2, 2, 2]
- D[0, 0, 0]
Correct answer: C
What is the output of the following Python code?
fs = [lambda: i for i in range(3)]
print([f() for f in fs])