Inserting element at list index (Python)

Below example shows how to use the Python list .insert() method for inserting list elements at specified index:

ls = [3,5]
ls.insert(1,4)
print(ls)

This generates the following output:

[3, 4, 5]