adplus-dvertising
frame-decoration

Question

What is the output of the following?
x = 'abcd'
for i in x:
    print(i.upper())

a.

a b c d

b.

A B C D

c.

a B C D

d.

error

Posted under Python

Answer: (b).A B C D

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following?

Similar Questions

Discover Related MCQs