use of clear method in dictionary code example Example: how to clear dictionary in python dict.clear()