You are here: Practice · Calculator

Two numbers

Ask for two numbers and + or −. Print the answer.

That is enough. Multiply and divide can wait. A calculator that only adds is still a calculator you wrote.

Tap a piece

Build the file in that order. File name idea: calc.py.