t151.py 119 B

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