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

bookmark

# Python program to clear all the elements from the list    
    
lst = ["Python", "Remove", "Elements", "List", "Tutorial"]    
print("Initial List is :", lst)    
    
# Using the clear() function    
element = lst.clear()    
print(element)    
print(lst)    


Output:

Initial List is : ['Python', 'Remove', 'Elements', 'List', 'Tutorial']
None
[]