Vidyalelo
Python · Q62

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 62

Q62

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

A.
a b c d
B.
0 1 2 3
C.
error
Answer
D.
none of the mentioned

Answer: Option C

Solution

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