t152.py 124 B

12345
  1. print str(range(5,0,-3))[:5]
  2. print len(range(5,0,-3))
  3. print range(5,0,-3)[0]
  4. print range(5,0,-3)[1]
  5. print range(5,0,-3)[-1]