Write a Python program that acts as a very basic calculator….
Write a Python program that acts as a very basic calculator. Your program should: Ask the user for two numbers. Ask the user for an operation. (addion + or subtraction -). Perform the chosen operation on the two numbers and print the result. Include a simple check to make sure only numbers are input. Your program should loop until both numbers entered are zero. Hint: You will need a loop and a try/except! Sample run: Enter first number (0 to exit): 10Enter second number (0 to exit): 5Enter operation (+, -,): +Result: 15.0——————————Enter first number (0 to exit): abcInvalid input. Please enter numbers.——————————Enter first number (0 to exit): 0Enter second number (0 to exit): 0Exiting calculator. Goodbye! You should be able to complete this in 17 lines of code or fewer. However, if you go over, no points will be deducted. You do not need to use functions unless you want to.
Read Details