a = range(1, 6)
print a  # [1, 2, 3, 4, 5]

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

a = [1, 2, 3] + [4, 5]
print a  # [1, 2, 3, 4, 5]

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

# a = [1, 2, 3] + 4 + 5  # TypeError: can only concatenate list (not "int") to list
