how to insert ele in python

29

list1 = [ 1, 2, 3, 4, 5, 6, 7 ] 
  
# insert 10 at 4th index 
list1.insert(4, 10) 
print(list1)

Comments

Submit
0 Comments