Given two separate example dictionaries:

```
fruit_type = {'apple': 'stonefruit', 'peach': 'stonefruit', 'pear': 'stonefruit','orange': 'citrus', 'lemon': 'citrus', 'tangerine': 'citrus'}
similar_fruit = {'apple': ['peach', 'pear'], 'peach': ['apple', 'pear'], 'pear': ['apple', 'peach'], 'orange': ['lemon', 'tangerine'], 'lemon': ['orange', 'tangerine'], 'tangerine': ['orange', 'lemon']}

```

What is the most efficient method of comparing each of the keys against the values in the `similar_fruit` dictionary based on their values in the other dictionary `fruit_type`?

I have what seems like a naive working implementation below:

```
same_type = False

for fruit in similiar_fruit:
  for comparison in similiar_fruit[fruit]:
    if fruit_type[fruit] == fruit_type[comparison]:
      same_type = True

```

It might be helpful to note that there are only 2 types of fruits at all times (stonefruit, citrus), and the keys in the first dictionary line up with the keys in the second dictionary in terms of same keys (apple, peach, pear, orange, lemon, tangerine), not necessarily the order of the keys.

Thank you in advance.