Vidyalelo
Python · Q66

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 66

Q66

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

A.
abcd
Answer
B.
ABCD
C.
error
D.
none of the mentioned

Answer: Option A

Solution

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