GRADE 7 · COMPUTING · UNIT 1 · LESSON 1.9
Block it out: Moving from blocks to text
BIDMAS in Python
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S TRACE, REASON AND TEST
BIDMAS in Python
Python uses operator precedence to group calculations. Parentheses override the normal order. Powers use **. Multiplication and division share one precedence level and ordinary chains at that level group left to right. Addition and subtraction also share a level; division does not always come before multiplication.
- Predict arithmetic results using Python operator precedence.
- Evaluate multiplication and division at the same precedence from left to right.

Explore the clues
Tap one card to find out more.
Understand the idea
Python uses operator precedence to group calculations. Parentheses override the normal order. Powers use **. Multiplication and division share one precedence level and ordinary chains at that level group left to right. Addition and subtraction also share a level; division does not always come before multiplication.
Concept to practise: BIDMAS in Python.
Work through an example
12 / 3 * 2 groups as (12 / 3) * 2 and produces 8.0. By contrast, 12 / (3 * 2) gives 2.0. The brackets make the difference explicit rather than changing an answer by guesswork.
Try before your workbook
Compare 18 / 3 * 2 with 18 / (3 * 2). Predict both results and explain the grouping.
Check my readiness thinking
The first groups left to right and gives 12.0. The second first multiplies 3 by 2 inside the brackets and gives 3.0. Multiplication and division have equal precedence.
Your original programs and learning models
These original PaxaKids program and data models support your workbook. Some examples deliberately contain faults to investigate. Follow their headings and preserve exact code case, punctuation and order. Traces and supplied records are not claims of physical testing.
Make the calculation order explicit
BIDMAS is a reminder, but its letter order must not make us treat division as always before multiplication. Python gives multiplication and division the same priority. Addition and subtraction also share a priority level.
Read the priority guide
| Operation | Python form | How to use it |
|---|---|---|
| Power | ** | Example: 3 ** 2 means 3 squared. |
| Multiply or divide | * or / | Same level: follow left to right. |
| Add or subtract | + or - | Same level: follow left to right. |
Compare equal-priority operations
THREE ORIGINAL EXPRESSIONS
24 / 3 * 2
24 / (3 * 2)
20 - 6 + 3Choose the intended grouping
Predict, run and compare
YOUR SIX EXPRESSIONS
8 * 3 + 2
30 - 8 + 2
7 + 5 * 4
6 * 9 - 12 / 3
20 * 6 - 2 * 4
12 * 5 - 6 / 2Change grouping and explain why

Try one step with Paxa!
Trace code carefully and preserve exact spelling, case and order. Use invented practice data. Save personal responses before leaving.
Our Unit 1 learning path
- Lesson 1.1: Comparing Scratch and Python
- Lesson 1.2: Using Python
- Lesson 1.3: Using Python IDLE in Script mode
- Lesson 1.4: Variables
- Lesson 1.5: Adding more information to a program
- Lesson 1.6: Data types – string, integer and real
- Lesson 1.7: Casting
- Lesson 1.8: Flowcharts and algorithms
- Lesson 1.9: BIDMAS in Python
- Lesson 1.10: Error detection and correction
- Lesson 1.11: Making choices IF THEN ELSE in flowcharts
- Lesson 1.12: Sub-routines
- Lesson 1.13: Random questions and a star number
- Lesson 1.14: Final project
- Lesson 1.15: Evaluation
- Lesson 1.16: What can you do?
For grown-ups: using this lesson
Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.
Read one explanation, discuss the model and try the readiness check before the workbook. Choose “Mark lesson finished” when ready. Optional account progress saves lesson position and completion across devices; save personal responses before leaving.
2. Fill in your workbook
Read the teaching and the complete workbook instructions. Choose, write or draw; Answer list offers larger controls. Trace code precisely and distinguish predictions from actual tests. Review designs, explanations and drawings with a grown-up.
Opening your PDF…
Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.
You’ve completed the checked activities.
TAKE YOUR PRACTICE OFFLINE
3. Download the student worksheet
All 6 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.
Student worksheet only · PDF · 8.4 MiB · No answer key included
TRY FIRST, THEN CHECK TOGETHER
Download the student worksheet →4. Answers & guidance
Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.
Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.
Show answers for all 6 worksheets
Worksheet 1
- Question 1: How are multiplication and division ranked in Python? at the same priority level
- Question 2: Which grouping marks can change the calculation order? parentheses ( )
- Question 3: Which Python operator means a power, such as 3 squared? **
Worksheet 2
- Question 4: What is the value of 2 ** 4? 16
- Question 5: What is the value of 4 + 6 * 3? 22
- Question 6: What is the value of (4 + 6) * 3? 30
Worksheet 3
- Question 7: What does expression A produce in Python? 16.0
- Question 8: What does expression B produce in Python? 4.0
- Question 9: What does expression C produce? 17
Worksheet 4
- Question 10: Which expression multiplies 8 by the sum of 3 and 2? 8 * (3 + 2)
- Question 11: Which expression subtracts the sum of 8 and 2 from 30? 30 - (8 + 2)
- Question 12: Which expression adds 7 and 5 before multiplying by 4? (7 + 5) * 4
Worksheet 5
- Question 13: For each expression, record your prediction, actual Python result and whether they agree. Show the operation order for at least one case. If a prediction differs, explain and correct it; label unrun work clearly. Expected results in order: 26; 24; 27; 50.0; 112; 57.0. Python / produces float results in cases 4/6. Predictions should precede actual runs. Accept accurately labelled paper calculations as preparation, not execution evidence. The explanation must group multiplication/division above addition/subtraction, and follow ordinary equal-priority operations left to right. A disagreement should lead to a concrete correction and retest. Grown-up review; personal evidence is required.
Worksheet 6
- Question 14: Write all six revised expressions with their results. Explain the changed operation order in two of them, including one that contains division. State what your tests showed and correct any unsuccessful grouping. Valid solutions in order:8*(3+2)=40;30-(8+2)=20;(7+5)*4=48;(6*9-12)/3=14.0;20*(6-2)*4=320;(12*5-6)/2=27.0. Extra harmless parentheses are acceptable, but preserve number/operator order and do not add/change arithmetic operators. Explanations must describe grouping, not an always-division-first rule. Accept equivalent numerically correct forms that meet the exact constraints. Honest run/paper labels and corrected test evidence required. Grown-up review; personal evidence is required.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing 7 Student’s Book — page 28
- PaxaKids Grade 7 Computing Lesson 1.9: BIDMAS in Python — pages 1–6
Computing for your homeschool day
Explore BIDMAS in Python with this free Grade 7 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.
Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.
Understand your results
Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.
Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.
For programme background, visit the Cambridge Lower Secondary Computing overview. PaxaKids provides independent original companion practice.
The book pages identify the related teaching topic. The explanations, characters, programs and exercises here are original PaxaKids companion practice. Practical tasks require the appropriate editor and, where applicable, suitable equipment. A design or paper trace is not a verified hardware result. Only completed, reviewed lessons are listed.
Explore the Cambridge Lower Secondary Computing curriculum for programme background. PaxaKids is an independent learning resource.
