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 06:30
What result from the passage of this amendment
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
In the context of an internet connection, llc stands for leased line connection liability limited company local loop complex local loop carrier
Answers: 1
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
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
question
Mathematics, 26.10.2019 17:43
question
Mathematics, 26.10.2019 17:43
question
Mathematics, 26.10.2019 17:43
Questions on the website: 13722367