appending an array index to an array in python code example Example: python add element to array my_list = [] my_list.append(12)