0

How to make a selection on a calculator in Python

that is, select the type of calculation (+, *, -, Ă·)

5th Nov 2025, 4:58 PM
Oscar HernĂĄndez MartĂ­nez Grande
Oscar HernĂĄndez MartĂ­nez Grande - avatar
1 Answer
+ 1
Oscar! Ask the user (using the Python input command) to enter two numbers, then ask them to enter the required action(enter symbol): '*' or '/' or '+' or '-'. Use a branching statement to compare the entered symbol and perform the required mathematical operation based on it
5th Nov 2025, 5:10 PM
Bazooka
Bazooka - avatar