Python Function Reference

append
Add an item to the end of the list.
Python 3.13
list.append(x)
Examples
Python 3.13
my_list = [1, 2]
my_list.append(3)
print(my_list)
[1, 2, 3]