adplus-dvertising
frame-decoration

Question

What is the output of the following?
for i in [1, 2, 3, 4][::-1]:
    print (i)

a.

1 2 3 4

b.

4 3 2 1

c.

error

d.

none of the mentioned

Posted under Python

Answer: (b).4 3 2 1

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