adplus-dvertising
frame-decoration

Question

What is the output of the following?
for i in ''.join(reversed(list('abcd'))):
    print (i)

a.

a b c d

b.

d c b a

c.

error

d.

none of the mentioned

Posted under Loops in Python Python

Answer: (b).d c b a

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