Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

delete key value in dictionary python

del d[key]  # no returns
d.pop(key)  # this returns value
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #key #dictionary #python
ADD COMMENT
Topic
Name
8+7 =