how to reverse list python

25

>>> xs = [0, 10, 20, 40]
>>> for i in reversed(xs):
...     print(i)

Comments

Submit
0 Comments