Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dictionary delete by value

myDict = {key:val for key, val in myDict.items() if val != deletevalue}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #dictionary #delete
ADD COMMENT
Topic
Name
3+4 =