Example:

```
dict = {1: "X", 2: "Y", 3: "X"}

```

I want to print every key that has the value "X".

Desired Output:

```
1 3

```

Edit:
Yeah, yeah, whatever. I worded it wrong when I searched for the question - it is probably a duplicate from what I've seen but I came up with a solution after all your... helpful comments.

```
item = (input("\nItem Name: ")).lower()
if item in recipes.values():
    print("\n--------------------[Recipes]----------------------")
    for key, value in recipes.items():
        if value == item:
            print(key)
    print("---------------------------------------------------")

```