Computers and Technology
Computers and Technology, 25.02.2020 04:52, lilmsnyah

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'

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 19:30, ibrahimuskalel
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
image
Computers and Technology, 23.06.2019 02:30, woodpeckerdeejpe8wvh
How to launch an app: steps to be successful? launching an app is a great idea, but it’s not that easy as we supposed to think. the majority of mobile applications don’t generate revenue because companies aren’t ready to be competitive. referring to our experience in successfully building and launching apps we hope to you omit these difficulties. we are going to talk about ideas, marketing, testing your product, its development, distribution and support. you will learn 8 product launch stages to succeed.
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, cristalcastro901
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
image
Computers and Technology, 24.06.2019 10:00, ariyanadavid5989
1. which of these is not true about torsion bars? a. they can be used to adjust ride height b. they can be adjusted anytime since they don't affect alignment angles c. they attach between the frame and the lower control arm d. they twist to produce a spring effect
Answers: 1
Do you know the correct answer?
Build a grammar checker function gram_check that takes as an input, sentences of the form [Pronoun]...

Questions in other subjects:

Konu
Mathematics, 12.01.2021 14:00
Konu
English, 12.01.2021 14:00
Konu
Mathematics, 12.01.2021 14:00
Konu
Mathematics, 12.01.2021 14:00
Konu
Biology, 12.01.2021 14:00
Konu
English, 12.01.2021 14:00