for values in dict if all values2 != values in dict2 code example Example: if dict.values <= int all(value == 0 for value in your_dict.values())