append value to an index in a list 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
Example 3: append to list at index python
list.insert(index, obj)