Mega Code Archive

 
Categories / Python Tutorial / List
 

Adding and Removing Items in a List

list1 = ["One", "Two", "Three"] list2 = ["Five", "Six"] print list1 #Append item list1.append("Four") print list1