Get key by value in dictionary Python The Problem Retrieving the value associated with a Python dictionary key is simple: names = {"Doe": "Jane", "Smith": "John"} print(names["Doe"]) # will print Jane But how do I perform the opposite operation, i.e.