# [0, 1, 2, 3, 4]
print range(0, 5)

# [0, 10, 20, 30, 40]
print range(0, 41, 10)

# [-5, -1, 3, 7, 11]
print range(-5, 12, 4)


# p q r s t u v w x
# 0 1 2 3 4 5 6 7 8

s = 'pqrstuvwx'

# 'ar'
print s[1:3]

# 'prtv'
print s[0:8:2]

# 'xvt'
print s[-1:3:-2]

# 'stuvw'
print s[3:-1]

# 'stuvwx'
print s[3:]