-->

Saturday, March 9, 2013

reverse a list in python

easier than this it is difficult
>>> L = [0,10,20,40]
>>> L.reverse()
>>> L
[40, 20, 10, 0]

No comments:

Post a Comment