appending list code example
Example 1: append to lists python
list = [] ## Start as the empty list
list.append('a') ## Use append() to add elements
list.append('b')
Example 2: lsit append in python
List=[1,'a',"hello"]
List.append(True)
print(List)
# output: [1, 'a', 'hello', True]