adplus-dvertising
frame-decoration

Question

What is the output of the following?
x = ['ab', 'cd']
for i in x:
    x.append(i.upper())
print(x)

a.

[‘AB’, ‘CD’].

b.

[‘ab’, ‘cd’, ‘AB’, ‘CD’].

c.

[‘ab’, ‘cd’].

d.

none of the mentioned

Posted under Python

Answer: (d).none of the mentioned

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