Choose an arithmetic operator
Leans on
Quick review (2 minutes)
A volunteer is measuring ribbon for four display frames.
Use + to add an amount, - to take an amount away, * to find the total of equal groups and / to share an amount equally. In 4 * 6, the operands are 4 and 6, the numbers that * works on.
Start with whole numbers such as 4 and 20. To subtract, put the starting amount first and the amount you remove second. To divide, put the amount to share first and the number of shares second. The number to the right of / is the divisor. In this example, it counts the frames, so it must be at least one.
Python calls numbers such as 2.5 and 5.0 floats. In these examples, / gives a float even when the share is a whole number of meters.
Say what is happening. Are you adding a piece, taking one away, finding the total of equal groups or sharing equally?
Choose the operator for that action. Put it between the two numbers in the order described above.
To show the result, type
printand put the calculation inside the parentheses(and). Type the source lines below in a file in your editor. Save it asribbon.pyand run it with Python 3.13. You can also follow along on paper with the printed trace, which shows the results in order.
If you reach for the letter x when you mean “times,” type the asterisk *. That is Python’s multiplication sign.
Both numbers in 20 / 4 are whole numbers. The length per frame is exactly 5 m, and Python displays that result as 5.0. The .0 is part of how Python writes this float.
1 In plain words
A volunteer is measuring ribbon for four display frames. Each roll holds 6 meters. Here, m stands for meters. The volunteer lays out four rolls, adds a spare piece, cuts off some ribbon and shares what is left equally. Each frame needs the same length.
Read 4 * 6 as “four times six.” The * is an operator, a symbol that tells Python what calculation to do. Remember to name the action first. Look up its symbol in The rule below.
2 Picture it
Four 6 m rolls give 24 m. The spare 5 m brings it to 29 m. Cutting 9 m leaves 20 m. Dividing that among four frames gives 5 m per frame.
3 Why
Four rolls of the same length give you four groups of 6 m. Multiplication finds their total in one calculation. Adding the spare makes the total longer. Taking away the cut piece is subtraction, and it tells you how much ribbon is left.
Dividing the ribbon into equal shares gives you the length for one frame. Put all four shares end to end to check that they add up to the length you divided.
4 The rule
Use + to add an amount, - to take an amount away, * to find the total of equal groups and / to share an amount equally.
In 4 * 6, the operands are 4 and 6, the numbers that * works on.
Start with whole numbers such as 4 and 20. To subtract, put the starting amount first and the amount you remove second. To divide, put the amount to share first and the number of shares second. The number to the right of / is the divisor. In this example, it counts the frames, so it must be at least one.
Python calls numbers such as 2.5 and 5.0 floats. In these examples, / gives a float even when the share is a whole number of meters.
5 How
- Say what is happening. Are you adding a piece, taking one away, finding the total of equal groups or sharing equally?
- Choose the operator for that action. Put it between the two numbers in the order described above.
- To show the result, type
printand put the calculation inside the parentheses(and). Type the source lines below in a file in your editor. Save it asribbon.pyand run it with Python 3.13. You can also follow along on paper with the printed trace, which shows the results in order.
6 Worked example
Ribbon for four display frames
print(4 * 6)
print(24 + 5)
print(29 - 9)
print(20 / 4)
Standard input
Empty
Standard output
24
29
20
5.0
Save the code as ribbon.py and run the file in Python 3.13. The first three lines show whole meter counts. The last line shows the share as a float. Four shares of 5 m give the 20 m you divided.
Trace
| Action | Calculation | Output | Explanation |
|---|---|---|---|
| Count equal rolls | 4 * 6 | 24 | Four groups of 6 m make 24 m. |
| Add the spare | 24 + 5 | 29 | The extra piece adds 5 m. |
| Cut a piece | 29 - 9 | 20 | The cut removes 9 m. |
| Share equally | 20 / 4 | 5.0 | Four pieces of 5 m recover the 20 m you divided. |
7 The trap
If you reach for the letter x when you mean “times,” type the asterisk *. That is Python’s multiplication sign.
Both numbers in 20 / 4 are whole numbers. The length per frame is exactly 5 m, and Python displays that result as 5.0. The .0 is part of how Python writes this float.
Quick checks
Quick check 1 of 2
You have 18 m of ribbon and cut off 7 m. Which calculation gives the length left, and what is the result?
Show the steps and the answer
Use 18 - 7. There are 11 m left.
Why: Cutting takes part of the ribbon away, so use -.
Source: Python Software Foundation, Python 3.13 Tutorial, 3.1.1. Numbers
Quick check 2 of 2
Share 15 m of ribbon equally across six signs. What calculation would you put inside print in a new editor file? What would the program display?
Show the steps and the answer
Type print(15 / 6). The program uses no keyboard input and prints 2.5 on one line.
Why: Use / to share the total equally. Six lengths of 2.5 m give 15 m, the full length you started with.
Source: Python Software Foundation, Python 3.13 Tutorial, 3.1.1. Numbers
Sources
- Python 3.13 Tutorial, 3.1.1. Numbers. Python Software Foundation. Python Software Foundation License Version 2. Read 26 Nov 2026.