append in poython code example Example 1: add item to list python list.append(item) Example 2: add to python list array.append(element)