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 num and num 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 num:
Enter num:
Enter operator :
Result:
do not use loops or funtions for this
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
