Question: Write a Python program to do the following. Take two numbers from the user in separate inputs. and then perform addition, subtraction, multiplication and division

Write a Python program to do the following. Take two numbers from the user in separate inputs. and then perform addition, subtraction, multiplication and division calculations on 2 numbers. Consider possibility of input errors (i.e. divisor is 0? user entered string instead of numbers? user entered float?) Use try and except to handle the 2 exceptions by outputting statements that indicates related errors.

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!