Python で人の姓をキーとする辞書があり、各キーには複数の値がリンクされています。forループを使用して辞書を反復処理して特定の値を検索し、値がリンクされているキーを返す方法はありますか?
for i in people:
if people[i] == criteria: #people is the dictionary and criteria is just a string
print dictKey #dictKey is just whatever the key is that the criteria matched element is linked to
複数の一致もあるかもしれないので、複数のキーを出力する必要があります。