l = [9,8,1,2,3,45,5] l.sort() print l print "---------------- DEFAULT" l.sort(reverse=True) print l print "---------------- REVERSE"