Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pytohn reset all dictionary values to 0

Dict.update({}.fromkeys(Dict,0))
#Replace Dict with the name of your dictionary, and 0 with the value 
#you want to reset all the keys too
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pytohn #reset #dictionary #values
ADD COMMENT
Topic
Name
2+8 =