Write a function to identify if value is present inside a dictionary or not


Topic: Write a function to identify if value is present inside a dictionary or not

Solution

def check_value(d:dict, value)->bool:
    return any(v == value for v in dict.values())



List all Python Programs