GRADE 6 · COMPUTING · UNIT 4 · LESSON 4.7
Computer systems
Build and compare two counting programs
Learn the idea, try your workbook and explain your thinking.
LET’S LOOK, THINK AND TRY
Build and compare two counting programs
Paxa and Sami will create two programs that output the first ten positive even numbers: 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 . Both start at 2, repeat ten times, output the current value, then add 2. One uses Scratch blocks and a list called Numbers; the other uses Python 3 console output.
- Build and compare two counting programs.
- follow the practical steps or paper alternative and record evidence.

Separate the language from its tools
A programming language supplies the rules and commands used to express a program. A programming environment provides tools such as an editor, a way to run code and an output area. Blocks and typed text can represent the same algorithm. Follow the condition and order rather than judging by appearance. Text-based code requires accurate syntax; block-based tools can reduce some syntax errors. The most suitable choice depends on the task and learner.
Work through the example: Build the original Scratch script
Create a variable called number and a list called Numbers, for all sprites. Show the Numbers list. Choose one sprite and build this script. Clearing the list and resetting the variable make each green-flag run independent. The indented blocks go inside repeat.

Why this helps: A programming language supplies the rules and commands used to express a program. A programming environment provides tools such as an editor, a way to run code and an output area. Blocks and typed text can represent the same algorithm. Follow the condition and order rather than judging by appearance. Text-based code requires accurate syntax; block-based tools can reduce some syntax errors. The most suitable choice depends on the task and learner.
Try it before the workbook
How many values must each program output?
Use the explanation to choose a reason. This first workbook question helps you check that you are ready.
Explore the clues
Open one card at a time.
Remember the idea
A programming language supplies the rules and commands used to express a program. A programming environment provides tools such as an editor, a way to run code and an output area. Blocks and typed text can represent the same algorithm. Follow the condition and order rather than judging by appearance. Text-based code requires accurate syntax; block-based tools can reduce some syntax errors. The most suitable choice depends on the task and learner.
Check your first try
10
Paxa and Sami will create two programs that output the first ten positive even numbers: 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 . Both start at 2, repeat ten times, output the current value, then add 2. One uses Scratch blocks and a list called Numbers; the other uses Python 3 console output. Build from a blank project or use the teacher's original reference to compare your work.
Explain with evidence
Use actual software results or clearly labelled paper traces.

Think safely with Paxa!
Use the supplied device and data models. Ask a grown-up before connecting equipment, installing software or creating an account.
Use the actual records and labels to explain your answer.
Our Unit 4 learning path
- Lesson 4.1: Identify components and explain their roles
- Lesson 4.2: Compare specifications, costs and useful life
- Lesson 4.3: Create and review a component guide
- Lesson 4.4: Evaluate computer choices with evidence
- Lesson 4.5: Compare languages and programming environments
- Lesson 4.6: Trace loops and diagnose programming errors
- Lesson 4.7: Build and compare two counting programs
- Lesson 4.8: Test, debug and justify an environment choice
- Lesson 4.9: Explain digitisation and storage units
- Lesson 4.10: Encode data and convert storage quantities
- Lesson 4.11: Investigate an original digital sound file
- Lesson 4.12: Evaluate storage plans and unit claims
- Lesson 4.13: Distinguish processing, working memory and storage
- Lesson 4.14: Trace a paper processor and saved state
- Lesson 4.15: Investigate working copies, saving and reopening
- Lesson 4.16: Evaluate processor and memory claims with evidence
- Lesson 4.17: Explain an industrial robot system
- Lesson 4.18: Plan and test a paper robot route
- Lesson 4.19: Test an original sorting robot simulation
- Lesson 4.20: Evaluate robotic production with balanced evidence
- Lesson 4.21: Design and justify a computer and robot system
For grown-ups: using this lesson
Explore the explanation and model together, then try the workbook. 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.
Opening or checking a page does not complete the lesson. Choose “Mark lesson finished” when ready. Optional account progress saves the selected grade, lesson position and completion across devices. Personal workbook responses remain in this tab; save your copy before leaving. Use fictional data and supervised devices; do not share passwords, contact details or real personal records.
2. Fill in your workbook
Read each page’s explanation and use its own diagrams, labels and supplied records. Choose, write or draw. Use Answer list for larger controls.
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 8 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.5 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 8 worksheets
Worksheet 1
- Question 1: How many values must each program output? 10
- Question 2: Which requirement must both programs meet? a) The same ten values in the same order
Worksheet 2
- Question 3: What value is set before the loop starts? 2
- Question 4: Where must add (number) to [Numbers] go? a) Inside the repeat loop, before the increment
Worksheet 3
- Question 5: What is the fifth value output? 10
- Question 6: What is the tenth and last value output? 20
- Question 7: What is the final number value after the tenth increment? 22
Worksheet 4
- Question 8: How many iterations does range(10) supply? 10
- Question 9: Which lines must be inside the loop? b) Print and increment
Worksheet 5
- Question 10: How many list items should remain after the second independent green-flag run? 10
- Question 11: What prevents the list from accumulating old outputs? c) Delete all of Numbers at the start
Worksheet 6
- Question 12: What should the tenth value be in the start-at-1 trial? 19
- Question 13: What should the final number value be after its tenth increment? 21
Worksheet 7
- Question 14: What makes the two base programs equivalent for this brief? b) Matching output values and order
- Question 15: What should be checked after a further edit? a) The relevant expected and actual outputs again
Worksheet 8
- Question 16: Record the base settings, expected and actual output sequence for both forms, and the changed-start trial. Base: start 2, step 2, count 10, output-before-add, Scratch list cleared. Expected outputs 2, 4, 6, 8, 10, 12, 14, 16, 18, 20; final variable 22. Changed start 1 gives 1, 3, 5, 7, 9, 11, 13, 15, 17, 19; final 21. Compare actual results honestly, investigate any mismatch and restore start 2. Identify software or paper route. Grown-up review.
- Question 17: Compare one useful feature and one possible mistake in each environment. Scratch: visible block choices/list, but wrong repeat count, increment order or a typed literal instead of variable can cause logic errors. Python: concise typed code/console record, but spelling, parentheses, colon or indentation can cause syntax errors, and valid code can still have logic errors. Accept specific tested examples; do not claim a universal speed or power ranking. Grown-up review.
Curriculum & workbook reference
- Cambridge Primary Computing Learner’s Book 6 — pages 201–208
- PaxaKids Grade 6 Computing Lesson 4.7: Build and compare two counting programs — pages 1–8
Computing for your homeschool day
Explore Programming environments with this free Grade 6 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.
The book pages identify the related teaching or assessment. These explanations, projects, review activities and student workbooks are original PaxaKids companion materials. These activities include paper alternatives. No separate publisher Workbook or proprietary digital project files are needed.
