Removing elements from the list

Program

list = [0,1,2,3,4]     
print("printing original list: ")

for i in list:    
    print(i,end=" ") 
list.remove(2)
   
print("\nprinting the list after the removal of first element...")    
for i in list:    
    print(i,end=" ")



OUTPUT:


printing original list: 
0 1 2 3 4 
printing the list after the removal of first element...
0 1 3 4