python check if dictionary value is true code example
Example 1: python check if all dictionary values are False
if all(value == True for value in your_dict.values()) == True:
#DO SOMETHING
Example 2: python check if false in dict
a_dictionary = {"a": 1, "b": 2}
contains_1 = 1 in a_dictionary.values()
print(contains_1)