Question: Exercise 3 Build a grammar checker function gram_check that takes as an input sentences of the form [Pronoun] [present tense verb] [object] ex., He plays

Exercise 3 Build a grammar checker function gram_check that takes as an input sentences of the form [Pronoun] [present tense verb] [object] ex., He plays basketbal and ensures that their is subject-verb agreement; i.e. it distinguishes between He plays basketball and *You plays basketball. Important notes The subject can be any of I, you, he, she, it, they. The verb can be any regular verb The object can be any object. Your program must print "Grammatical" if the sentence is grammatical and "Ungrammatical" if the sentence is ungrammatical Some structure within gram_check has been provided below, but you may change it if you wish. However, do not change the name of the function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
