So I want to go over a dictionary searching for the value True
. If it finds it, I'd like to return the Key that matched with the value.
I tried using d.get(True)
but that returns all of the keys. I only need the first one it could find.
Any ideas how to do so?
Thanks