2016-12-28

Python - How to completely reverse the order of the items in a list

list_name = [1,2,3,4]
print list_name
print list_name[::-1]

No comments:

Post a Comment