"""
IndexError
"""

# tuple, list

mylist = [1,2,3,4,5,6,7]

# valid index range: 0 to 6 and -1 to -7

mylist[-1]
mylist[-2]
mylist[-7]

# IndexError: list index out of range
mylist[-8]
mylist[8]

# cannot be reached






