Home / Programming MCQs / Python MCQs / Question

N

Neha Sharma • 6.85K Points
Tutor III

Q. What will be the output of the following Python code?

Code:
x = 'abcd'
for i in x:
    print(i.upper())
(A) a B C D
(B) a b c d
(C) error
(D) A B C D

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.