python dictionary clear method code example Example: how to empty a dictionary in python dict.clear()