Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list in python

list = [0,1,2,3,4]     
print("printing original list: ");    
for i in list:    
    print(i,end=" ")    
list.remove(2)    
print("
printing the list after the removal of first element...")    
for i in list:    
    print(i,end=" ")  
 
PREVIOUS NEXT
Tagged: #list #python
ADD COMMENT
Topic
Name
4+6 =