adplus-dvertising
frame-decoration

Question

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