python empty dictionary as default value 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()