# take list
my_list = ['C', 'Java', 'Python', 'HTML', 'Javascript']
# printing original list
print('List:', my_list)
# removed all item from the list
my_list.clear()
# print list after all item deletion
print('New list:', my_list)
clearing it
0
0
Mahendra Kumar
Python program to remove an item from a list using clean function
0 Comments
Add Comment
Log in to add a comment