Tips archive 26 Dec 2007 dabase.com → Kai's Tech Tips → Python → Finding the key to a value Finding the key to a value Published 26 Dec 2007 Use a list comprehension: hit = [k for k,v in dict.items() if v==lookingfor] ← Fixing tabs? Use reindent.py Fiddling with PYTHONPATH in bash →