Question: Python 1 answer = input ( The computer was invented in 1 8 2 2 : ) working with the if statement complete

Python
1 answer = input("The computer was invented in 1822:")
working with the if statement
complete the python code using the if elif statement block for the statement.
the computer was invented in 1822:
1, if the user input is given as True, print Correct.
2. if the user input is given as False, print Wrong.
3. if theuser input is not equal to True or False, print Please answer True or False.
Sample input: TRUE
Sample output: The computer was invented in 1822: Correct

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 Finance Questions!