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 Resposta
+ 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