Step 1 of 7

Step 1 · Read and run

A calculator

Numbers don't need quote marks. If you put a sum inside print(), Python works it out and shows the answer.

The signs are + add, - take away, * multiply (not ×) and / divide (not ÷).

Run it. Look closely at the last line: dividing always gives a decimal answer, even when it divides exactly.

Run the program to carry on.
sums.py

Output

Press Run to see what your program prints.