python dict remove all entries with code example Example: how to clear dictionary in python dict.clear()