How to get the name of a value in a dictionary?

this answer seems to guide people who need help in a good direction. I only solutioned it because it showed my example as a corrected form which can be useful

He used the example i gave but in a corrected form which is good for people trying to find answer

it also included an output with the results