Question: Please help me with this problem using Python, thank you Problem #1: Spell Checker Implement a function spell_check() that accepts 2 parameters: words and dict.

Please help me with this problem using Python, thank you Problem #1:Please help me with this problem using Python, thank you

Problem #1: Spell Checker Implement a function spell_check() that accepts 2 parameters: words and dict. The first parameter words is a list of strings. It contains the words we want to spell-check. Example values: ["hello", "world"], ['a', 'b', '123') The second parameter dict is also a list of strings. It is the dictionary that contains all valid words of a language. Example values: ['1', '3', 'Error'], ['good', 'afternoon'] Return a list of misspelling words contained in words. It is the list of strings that are in words but not in dict. The spell check is case-insensitive. Note: the function should not change words and dict. In other words, it should have no side effects. Examples: call to spell_check(["hello", "word"], ["HELLO", "World"]) should return ["word"] because the dictionary does not contain the string "word" call to spell_check(["hello", "world"], ["HELLO", "World"]) should return [] (empty list) because all the strings in words are also in dict call to spell_check(["HELLO", "HELLO", "world"], ["1", "2", "3"]) should return ["HELLO", "HELLO", "world"] (all misspelling words should be returned, even they are duplicated)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!