how to add an item from a list in python code example
Example 1: add item to list python
list.append(item)
Example 2: python append to list
#makes an empty list
List = []
#appends "exaple" to that list
List.append(example)
#removes "example" from that list
List.remove(example)
Example 3: append to lists python
list = ['a', 'b', 'c', 'd']
print list[1:-1] ## ['b', 'c']
list[0:2] = 'z' ## replace ['a', 'b'] with ['z']
print list ## ['z', 'c', 'd']