Question: Write a Python program that takes two numbers ( num 1 and num 2 ) and an operator ( op ) as input. Implement the

Write a Python program that takes two numbers (num1 and num2) and an operator (op) as
input. Implement the calculator to perform the specified operation and print the result. The
calculator should support addition (+), subtraction (-), multiplication (*), division (/), and
exponentiation (**).
Expected Output:
Enter num1: 10
Enter num2: 5
Enter operator (+,-,*,/,**): *
Result: 50

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!