What will be the output of the following Python code?
x = (i for i in range(3))
for i in x:
print(i)
for i in x:
print(i)
x = (i for i in range(3))
for i in x:
print(i)
for i in x:
print(i)
A. 0 1 2
B. error
C. 0 1 2 0 1 2
D. none of the mentioned
Answer: Option A
Join The Discussion