print str(range(0,5,3))[:5] print len(range(0,5,3)) print range(0,5,3)[0] print range(0,5,3)[1] print range(0,5,3)[-1]