Step 1 of 7

Step 1 · Read and run

Five operators

A sign that does something to numbers is called an operator. You met four in Chapter 1; there's a fifth, **, for powers.

Sign Does Example
+ add 7 + 2
- take away 7 - 2
* multiply 7 * 2
/ divide 7 / 2
** power 7 ** 2

7 ** 2 means 7 multiplied by itself 2 times, so it's 7 squared. 2 ** 3 is 2 × 2 × 2.

Run it. Notice that 7 / 2 gives a decimal.

Run the program to carry on.
operators.py

Output

Press Run to see what your program prints.