Python Program to remove an element from a list (remove() Method)

bookmark

# Python program to remove an element from a list using the remove() function    
      
my_list = ['Javatpoint', 'Python', 'Tutorial', 'List',    
       'Element', 'Removal']    
print("Initial List is :", my_list)    
      
# through remove() deleting 'Python' from the my_list    
my_list.remove('Python')    
print( "After using the function :", my_list )    


Output:

Initial List is : ['Javatpoint', 'Python', 'Tutorial', 'List', 'Element', 'Removal']
After using the function : ['Javatpoint', 'Tutorial', 'List', 'Elem