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