Insert item at index : Insert « List « Python Tutorial






list1 = ["One", "Two", "Three"]
list2 = ["Five", "Six"]

list1.insert(2, "Two 1/2")
print list1








7.13.Insert
7.13.1.The insert method is used to insert an object into a list
7.13.2.Insert item at index