use append code example
Example 1: append to list python
list = ["a"]
list.append("b")
print(list)
["a","b"]
Example 2: how to append list in python
list1 = ["hello"]
list1 = list1 + ["world"]
list = ["a"]
list.append("b")
print(list)
["a","b"]
list1 = ["hello"]
list1 = list1 + ["world"]