how to insert elements in middle of an array in python code example Example: python add to list with index list.insert(index, element)