Question PRG-PY-0066
HardWhat is the output of this program?
g = (x * x for x in range(4))
print(sum(g), sum(g), list(map(lambda x: x % 3, range(6))))
- A.
30 0 [0, 1, 2, 0, 1, 2]
- B.
14 14 [0, 1, 2, 0, 1, 2]
- C.
Sign up free to see the answer and a step-by-step explanation.