How to check if my list has an item from another list(dictionary)?
<p>I'm a beginner in programming with python, and I've got a question which may have an easy answer.</p>

<p>So I have a dictionary of words which is imported from a .txt file, next my program asks you to type a sentence, and then it saves every word which you've typed into another list.</p>

<p>I have to write a program which checks if every word of a list named <code>sentence_list</code> is in the list which is named <code>words</code>. If the word is not present in the dictionary I have to put it in another list which is being filled by all the words that are mistyped or not in the dictionary.</p>

<p>For easier understanding, my program should work something like that:</p>

<pre class="lang-none prettyprint-override"><code>Type your sentence:
My naeme is John, I lieve in Italy, which is beatiful country.
</code></pre>



<pre><code>['naeme', 'lieve', 'beatiful']
</code></pre>

<p>This is what I could do until now:</p>

<pre><code>words = open("dictionary.txt", encoding="latin2").read().lower().split()

sentence=input("Type your sentence: ")

import re

sentence_list = re.findall("\w+", sentence.lower())
</code></pre>

<p>I know I have to do something with for, but for is different in python that it is in Javascript, which I am familiar with.</p>
