clear a dictionary python code example
Example 1: how to clear dictionary in python
dict.clear()
Example 2: 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