| 1 | initial version |
To complement Thierry's answer, here is another way to get a reversed list:
sage: L = [4,2,5,1,3]
sage: L[::-1]
[3, 1, 5, 2, 4]
This produces a new list. The original list is unchanged.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.