# create a list
myList = [1, 2, 3, 4, 5]
# add an element at the end of the list
myList.append(6) # [1, 2, 3, 4, 5, 6]
# add more than one element at the end of the list
myList.extend([7, 8]) # [1, 2, 3, 4, 5, 6, 7, 8]
# create a list
myList = [1, 2, 3, 4, 5]
# add an element at the end of the list
myList.append(6) # [1, 2, 3, 4, 5, 6]
# add more than one element at the end of the list
myList.extend([7, 8]) # [1, 2, 3, 4, 5, 6, 7, 8]