WeCodeAcademy
❮ dict.update()dict.setdefault() ❯

dict.pop()

Removes a key and returns its value.

Group: Dictionary

Syntax

d.pop(key)

Example

Examplepython
Open in editor »

← All of Python Reference