Quarry School

Choose an arithmetic operator

Subject: Computing
Level 1 · FoundationsAbout 4 min read4 new terms
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Leans on

    Quick review (2 minutes)

    In plain words

    A volunteer is measuring ribbon for four display frames.

    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.

    Step

    1. Say what is happening. Are you adding a piece, taking one away, finding the total of equal groups or sharing equally?

    2. Choose the operator for that action. Put it between the two numbers in the order described above.

    3. To show the result, type print and put the calculation inside the parentheses ( and ). Type the source lines below in a file in your editor. Save it as ribbon.py and run it with Python 3.13. You can also follow along on paper with the printed trace, which shows the results in order.

    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.

    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 rolls4 × 6 → 24 mAdd the spare+ 5 m → 29 mCut a piece− 9 m → 20 mShare equally÷ 4 → 5 m

    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.

    Follow the ribbon from four rolls to four equal pieces.

    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

    1. Say what is happening. Are you adding a piece, taking one away, finding the total of equal groups or sharing equally?
    2. Choose the operator for that action. Put it between the two numbers in the order described above.
    3. To show the result, type print and put the calculation inside the parentheses ( and ). Type the source lines below in a file in your editor. Save it as ribbon.py and 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

    Python code
    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

    Follow the ribbon lengths
    ActionCalculationOutputExplanation
    Count equal rolls4 * 624Four groups of 6 m make 24 m.
    Add the spare24 + 529The extra piece adds 5 m.
    Cut a piece29 - 920The cut removes 9 m.
    Share equally20 / 45.0Four 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
    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
    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

    1. Python 3.13 Tutorial, 3.1.1. Numbers. Python Software Foundation. Python Software Foundation License Version 2. Read 26 Nov 2026.