dic={"lion":"wild","tiger":"wild","cat":"domestic","dog":"domestic"}How to delete value"wild"?
Answers
Answered by
6
dic={"lion":"wild","tiger":"wild","cat":"domestic","dog":"domestic"}
dic.pop(lion)
dic.pop(tiger)
This will also remove the key as well as the value
Similar questions