Question: True / False Create a function called trueFalse ( ) . The function will print a true / false question to the screen. The function

True/False
Create a function called trueFalse(). The function will print a true/false
question to the screen. The function will read an input from the user. The user
will type true or false. If the user typed the correct answer, the function will
return 1 point. If the user typed the incorrect answer, the function will return
0 points. You **must* have a correct and incorrect answer.
If the user enters anything but true or false, the question will be marked
incorrect

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!