PyDocs

Nav

Python Runtime Services

dict.pop

builtins

method of dict
  • dict.pop(key, /)
  • dict.pop(key, default, /)
D.pop(k[,d]) -> v, remove specified key and return the corresponding value.

If the key is not found, return the default if given; otherwise,
raise a KeyError.
0 Examples
No examples for builtins/dict.pop.
See Also
No see-alsos for builtins/dict.pop
0 Notes
No notes for dict.pop