input
returns str
and the values in the dict are int
, so the user input and [any] value from the dict will never be equal.Do you really want to print 'not found' for each not equal value? Also there are better ways to iterate over dict:
for key, value in some_dict.items(): # do something with key and value
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs