[Tutor] Dictionary Question
Jason N.
nymcity at yahoo.com
Mon May 2 17:26:54 EDT 2016
Hello,
Wanted to ask if its possible to have a dictionary that can be looked up by either values?
For example,
mydic = {"A: "Apple", "B": "Banana"}When user inputs "A" I want "Apple" to come. But if the user enter "Apple" I want "A" to respond.
Please let me know the best way to handle this type cause instead of just created duplicate entries to cover all possibilities. Thank you.
More information about the Tutor
mailing list