subject

Build a grammar checker function gram_check that takes as an input, sentences of the form [Pronoun] [present tense verb] [object] ex., He plays basketball and ensures that there is a 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. import re def gram check(s): #Put your code here if #Put your code here return "Grammatical" else: return Ungrammatical" gram check("she play basketball")Out [11]: 'Ungrammatical'

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:00
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
question
Computers and Technology, 23.06.2019 04:20
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
Which describes careers that have similar education requirements but different qualifications? product safety engineers and materials engineers industrial safety engineers and industrial health engineers quality control systems managers and inspectors industrial safety and health engineers and hand packers
Answers: 3
question
Computers and Technology, 25.06.2019 00:00
To remove text from a specific location and keep it to use again, you should select
Answers: 1
You know the right answer?
Build a grammar checker function gram_check that takes as an input, sentences of the form [Pronoun]...
Questions
question
English, 11.10.2019 19:30
question
Mathematics, 11.10.2019 19:30
Questions on the website: 13722367