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, 21.06.2019 17:20
Q-3 a technician is setting up a computer lab. computers on the same subnet need to communicate with eachother peer to peer communication,a. hardware firewallb. proxy serverc. software firewalld. gre tunneling
Answers: 3
question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Which text format is this, "the text is transcribed exactly as it sounds and includes all the utterances of the speakers. "?
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
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
question
Mathematics, 13.03.2020 00:15
Questions on the website: 13722361