Question: Write a simple calculator python program that can perform the following functions: Add, Subtract, Multiply, and Divide Your program should present the menu choices (
Write a simple calculator python program that can perform the following functions:
Add, Subtract, Multiply, and Divide
Your program should present the menu choices print out the various options and then prompt the user for their choice.
Then, prompt the user for two numbers and perform the requested operation.
If the user choses Divide, check to make sure that the second number is not zero to prevent a division by zero error. If the second number is zero, display an error message and exit the program.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
