Python - Dictionary and in <p>And sorry for the bad title-name, couldn't really figure out any good one.</p> <p>I'm having a problem I can't solve. I've tried all sort of things to find the problem, but I can't seem to solve it.</p> <p><a href="http://www.codesend.com/view/62a8ede9843cb4c63196285c104f7bd7/" rel="nofollow">http://www.codesend.com/view/62a8ede9843cb4c63196285c104f7bd7/</a> Here's my code.</p> <p>I've made a dictionary out of a file I read out from (works correctly, tested and printed out etc). I then take an input by the user, made into a string. Then I run checkData(), which is supposed to look if any of the letters in the txt is in the dictionary. For the sake of solving my problem, let's use the non-commented checkData(), which basically just prints if everything is there or not.</p> <p>My problem is that no matter what I have as an input, everything exists (which it does not). I've tried using random symbols, such as •Ωıéœµ•üΩµé, but it still says everything exists. The loop works perfectly and prints out 'is within', which means that the txt[i] is in dictMorse or dictTxt. But the "if txt[i] in dictMorse or dictTxt:" doesn't work.</p> <p>Thanks for any help!</p>