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