to find key by value in python dictionary just Use dict.items(). You can find the key of dictionary by using the value of it in python. Here for this we will use dict.items(). And we will use the for loop for that. First of all we will make a dictionary and then by using dict.items and the value of the key we will find the key in python. So lets learn this by given below example: mydict ={"vruksha":35, "henny":26, "Roshan":83} def mykey(val): for key, value in mydict.items(): if val == value: return key return "There is no such Key" print(mykey(35)) print(mykey(83)) print(mykey(3)) Output : vruksha Roshan There is no such Key