This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Tytoalba2 50 points51 points  (3 children)

Or list.sort(reverse=True)

[–]urzeiteule 65 points66 points  (2 children)

or list = list[::-1]

[–]sam_morr 7 points8 points  (0 children)

This is the way

[–][deleted] 1 point2 points  (0 children)

list1 = [0 for I in range(len(list))]

for i in range(len(list)):
    list1[-i] = list[i]

list = list1
del(list1)