Difference between remove,pop,and clear

remove() is an inbuilt function in Python programming language that removes a given object from the list. It removes the object from the list. It does not return any value. a
clear() method in python is used to empty the entire list. this can be used if someone wants an empty list for any other purpose.
The pop() method removes the item at the given index from the list and returns the removed item.

2 Likes

yaa all the answers are correct, Good going. Keep it up

2 Likes