subject

One thing we might want to know, given an input to a chatbot, is if the input is a question.
We are going to use a very simple heuristic to check this: we will consider any input that has a question mark ('?') in it to be a question.
To do so, write a function called is_question.
This function should have the following inputs, outputs, and internal procedures:
Input(s): input_string - string
Output(s): output - boolean
Procedure(s): if there is a '?' in input_string, set output to True
otherwise, set output to False.
return output

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
Stacy works as blank. the most important soft skill she needs for this role is blank.
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Anetwork security application that prevents access between a private and trusted network and other untrusted networks
Answers: 1
You know the right answer?
One thing we might want to know, given an input to a chatbot, is if the input is a question.
...
Questions
Questions on the website: 13722367