Exercise
Calculator Exercise 3: Perform Calculations
In this exercise, you’ll take the numbers entered by the user and perform the arithmetic operation they selected in Exercise 2 using a menu.
Task
Write a Python program that:
- Uses two numbers entered by the user (from Exercise 1)
- Uses the operation choice entered by the user (from Exercise 2)
- Performs the selected operation using if-elif-else:
- Addition
- Subtraction
- Multiplication
- Division
- Prints the result clearly
Example Output