Spellchecker

Report a typo

Write a spellchecker that tells you which words in the sentence are spelled incorrectly. Use the dictionary in the code below.

The input format:

A sentence. All words are in the lowercase.

The output format:

All incorrectly spelled words in the order of their appearance in the sentence. If all words are spelled correctly, print OK.

Sample Input 1:

srutinize is to examene closely and minutely

Sample Output 1:

srutinize
examene

Sample Input 2:

all correct

Sample Output 2:

OK
Write a program in Python 3
dictionary = ['all', 'an', 'and', 'as', 'closely', 'correct', 'equivocal',
'examine', 'indication', 'is', 'means', 'minutely', 'or', 'scrutinize',
'sign', 'the', 'to', 'uncertain']
___

Create a free account to access the full topic