Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to insert ele in python

list1 = [ 1, 2, 3, 4, 5, 6, 7 ] 
  
# insert 10 at 4th index 
list1.insert(4, 10) 
print(list1)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #insert #ele #python
ADD COMMENT
Topic
Name
1+6 =