Del vs remove


#1

To get rid of an item out of a dictionary, we use del.
e.g. del animals[ "lion"]

To get rid of a string, we use remove.
e.g. list.remove("remove")

how they differ? why they are not interchangeagle?


#2

@joony279,
google search
== discussions / opinions ==
python del vs remove site:stackoverflow.com
for instance
= http://stackoverflow.com/questions/11520492/difference-between-del-remove-and-pop-on-lists


#3

thank you. It makes me clear