primes = [2, 3, 5, 7, 11]primes.reverse() print primes
Standard input is empty
[11, 7, 5, 3, 2]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!