Question: In this assignment, you will create your own basic Error Detector ( called error _ detector.py ' ) by checking the Parity of the number

In this assignment, you will create your own basic Error Detector (called "error_detector.py') by checking the Parity of the number input by the user. Let's agree that all input should be even, so that all even input gives the message "OK!" and an odd input will print "Error detected!". For bonus points: use a string function to check whether the given input is a digit and exit gracefully if invalid input is given.
In this assignment, you will create your own

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