What is the syntax to insert a value at a specified index into a list?

<list name>.insert(<index of value>, <value>)
#example
>>> letters = ['A','B','C','E']
>>> letters.insert(3,'D')
>>> letters
['A', 'B', 'C', 'D', 'E']
Advertisements