Starting with a given list a:
a = [1, 2, 3, 4, 5]
append(value) – appends a new element to the end of the list.
# Append values 6, 7, and 7 to the list
a.append(6)
a.append(7)
a.append(7)
# a: [1, 2, 3, 4, 5, 6, 7, 7]
# Append another list
b = [8, 9]
a.append(b)
# a: [1, 2, 3, 4, ...