Vidyalelo
Python · Q68

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 68

Q68

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

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

Answer: Option C

Solution

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