append iin list code example
Example 1: append to list python
list = ["a"]
list.append("b")
print(list)
["a","b"]
Example 2: add an element to list python
a=[8,5,6,1,7]
a.append(9)
list = ["a"]
list.append("b")
print(list)
["a","b"]
a=[8,5,6,1,7]
a.append(9)