Home
/
Python 3.11
/
Built-in Types
/
del d[key]
Python 3.0
Python 3.9
Python 3.11
Functions
ID
EN
…
Built-in Types
del d[key]
Python 3.11
Remove d[key] from d. Raises a KeyError if key is not in the map.
Syntax
PYTHON
Copy
del d[key]
See Also
KeyError