Computer Science, asked by ishirohan1482, 5 months ago

dic={"lion":"wild","tiger":"wild","cat":"domestic","dog":"domestic"}How to delete value"wild"?

Answers

Answered by Anonymous
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