adding element to the list in python code example
Example 1: python add to list
list_to_add.append(item_to_add)
Example 2: python add item to list
# to add an item to a list
list.append(item)
# To extend an list with a new list
list1.extend(list2)