how to delete an empty dictionary in python code example
Example 1: how to clear dictionary in python
dict.clear()
Example 2: python empty dictionary
# Initializes an empty dictionary:
mydict = dict()
# or
mydict ={}
# Empties a dicionary:
mydict.clear()