Vidyalelo
Python · Q69

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 69

Q69

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

A.
a B C D
B.
a b c d
Answer
C.
A B C D
D.
error

Answer: Option B

Solution

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