1#append to list
2lst = [1, 2, 3]
3something = 4
4lst.append(something)
5#lst is now [1, 2, 3, 4]
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]
1
2List = ["One", "value"]
3
4List.append("to add") # "to add" can also be an int, a foat or whatever"
5
6#List is now ["One", "value","to add"]
7
8#Or
9
10List2 = ["One", "value"]
11# "to add" can be any type but IT MUST be in a list
12List2 += ["to add"] # can be seen as List2 = List2 + ["to add"]
13
14#List2 is now ["One", "value", "to add"]
1 list = [] ## Start as the empty list
2 list.append('a') ## Use append() to add elements
3 list.append('b')