One thing we might want to know, given an input to a chatbot, is if the input is a question.
...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 09.05.2020 23:57 jackfooman3100
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](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
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?
Questions
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 09.09.2020 14:01
![question](/tpl/images/cats/mat.png)
Mathematics, 09.09.2020 14:01
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/himiya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/User.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 09.09.2020 14:01
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 09.09.2020 14:01
![question](/tpl/images/cats/mat.png)
Mathematics, 09.09.2020 14:01
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/en.png)
English, 09.09.2020 14:01
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/fizika.png)
Physics, 09.09.2020 14:01