Write a program to add an element at specified index in a list


Topic: Write a program to add an element at specified index in a list

Solution

list = [10, 20, 30]
print (list)
list.insert (1, "ABC")
print (list)
list.insert (3, "PQR")
print (list)



List all Python Programs