Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python delete dict key if exists

 mydict.pop("key", None)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #delete #dict #key #exists
ADD COMMENT
Topic
Name
3+9 =