Vidyalelo
Python · Q38

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 38

Q38

What will be the output of the following Python code? x = (i for i in range(3)) for i in x: print(i)

A.
0 1 2
Answer
B.
error
C.
0 1 2 0 1 2
D.
none of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board