inserting new elemnt in list in puthon code example
Example 1: append to lists python
list = [] ## Start as the empty list
list.append('a') ## Use append() to add elements
list.append('b')
Example 2: append to list at index python
#!/usr/bin/python
aList = [123, 'xyz', 'zara', 'abc']
aList.insert( 3, 2009)
print "Final List : ", aList