Yes you can check below code
dictionary = {'george' : 16, 'amber' : 19}
search_age = int(input("Provide age"))
search_name =input("enter name")
for key, value in dictionary.items():
if value == search_age:
print(key, '::', value)
if key == search_name:
print(key, '::', value)