With value to find the matching key:
# function to return key for any value
def get_key(my_dict, val):
for key, value in my_dict.items():
if val in value: # when your value is a list
# if val == value: # when your value is a string
return key
return "key doesn't exist"
Source:
https://www.geeksforgeeks.org/python-get-key-from-value-in-dictionary/