t338.py 134 B

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