Vidyalelo
Python · Q71

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 71

Q71

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

A.
a b c d
B.
0 1 2 3
Answer
C.
error
D.
1 2 3 4

Answer: Option B

Solution

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