Mega Code Archive

 
Categories / Python Tutorial / List
 

The append method is used to append an object to the end of a list

lst = [1, 2, 3] lst.append(4) print lst