del element in dict if is empty code example
Example: python empty dictionary
# Initializes an empty dictionary:
mydict = dict()
# or
mydict ={}
# Empties a dicionary:
mydict.clear()
# Initializes an empty dictionary:
mydict = dict()
# or
mydict ={}
# Empties a dicionary:
mydict.clear()