Please enable JavaScript to use CodeHS

CodeHS Glossary


append() Python

Add a particular item to the end of a list.

my_list = [ 2, 3, 4, 5]
my_list.append(6)  
# the list will now be [2, 3, 4, 5, 6]