def check_frequency(test_dict, target_value):
    """
    Count frequency of a specific value in a dictionary
    """
    count = 0
    for value in test_dict.values():
        if value == target_value:
            count += 1
    return count
test_dict = {
    'a': 10,
    'b': 20,
    'c': 10,
    'd': 30,
    'e': 10,
    'f': 20
}
value = 10
frequency = check_frequency(test_dict, value)
print(frequency)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: