Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python remove dict key/values

# The pop() method can accept either one or two parameters:
# The name of the key you want to remove (mandatory).
# The value that should be returned if a key cannot be found (optional).
dictionary.pop(key_to_remove, not_found)
Source by careerkarma.com #
 
PREVIOUS NEXT
Tagged: #python #remove #dict
ADD COMMENT
Topic
Name
2+8 =