def get_key(d, search_value):
    return next(key for key, values in list(d.items()) if search_value in values)
get_key(d, 10)
get_key(d, 2)
How to get a list which is a value of a dictionary by a value from the list?