Adds an item to the end of the list.
list. append(object)
None
O(1)
>>> l = [1, 2] >>> l.append(3) >>> l [1, 2, 3]
insert() and extend()