I\'m a beginner in programming with python, and I\'ve got a question which may have an easy answer.
So I have a dictionary of words which is imported from a .txt file, n
Here's a one-liner using for, that generates a set of mispelled words:
for
set
mispelled = { word for word in sentence if word not in dictionary }
I've renamed your variables for clarity