add an item to a list pythonby index code example
Example 1: add element to list python at index
thislist = ["apple", "banana", "cherry"]
thislist.insert(1, "orange")
Example 2: append to list at index python
#!/usr/bin/python
aList = [123, 'xyz', 'zara', 'abc']
aList.insert( 3, 2009)
print "Final List : ", aList