how to add an item to existing list in python code example Example: how to add element in list list = [] list.append(var)