Vidyalelo
Python · Q67

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 67

Q67

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

A.
abcd
B.
ABCD
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