Vidyalelo
Python · Q63

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 63

Q63

What will be the output of the following Python code? x = 'abcd' for i in x: print(i.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