add element to middle of list python code example Example: python add to list with index list.insert(index, element)