0
What is the output of the following Python code?
g = (x * x for x in range(4))
print(sum(g), sum(g), list(g))- A14 14 [0, 1, 4, 9]
- B14 0 []
- C14 0 [0, 1, 4, 9]
- D14 14 []
Correct answer: B
What is the output of the following Python code?
g = (x * x for x in range(4))
print(sum(g), sum(g), list(g))