list1 = [1,2,3,4,5,6]
print(id(list1))
list1.insert(2, 1000) # insert item 1000 at index 2
print(list1) # now the last valid index is 6
list1.insert(6, 4000) # insert the item 4000 at index 6
print(list1) # now the last valid index is 7
list1.insert(8, 8000) # insert the item 8000 at index 8, which is beyond the last valid index
print(list1)
print(list1[8])