1#append to list
2lst = [1, 2, 3]
3something = 4
4lst.append(something)
5#lst is now [1, 2, 3, 4]
1my_list = []
2item1 = "test1"
3my_list.append(item1)
4
5print(my_list)
6# prints the list ["test1"]
1myList = [apples, grapes]
2fruit = input()#this takes user input on what they want to add to the list
3myList.append(fruit)
4#myList is now [apples, grapes, and whatever the user put for their input]
1append(): append the object to the end of the list.
2insert(): inserts the object before the given index.
3extend(): extends the list by appending elements from the iterable.