GRADE 8 · COMPUTING · UNIT 1 · LESSON 1.4
Computational thinking and programming
Identifiers and assignment
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S TRACE, REASON AND TEST
Identifiers and assignment
An identifier names a variable or routine. Assignment evaluates the expression on the right and binds the name on the left to that result. A later assignment does not automatically recalculate earlier copied values.
- Choose clear names and model assignment by replacing the value on a variable card.
- Explain my method and support it with a labelled trace, example or test record.

Work through an example
After first = 6 and second = first, both names refer to 6. Assigning first = 11 changes first to 11; second remains 6 because there is no new assignment to second.
Try before your workbook
After a = 3, b = a, and a = 8, what values should a and b have?
Explore the clues
Tap one card to find out more.
Understand the idea
An identifier names a variable or routine. Assignment evaluates the expression on the right and binds the name on the left to that result. A later assignment does not automatically recalculate earlier copied values.
Concept to practise: Identifiers and assignment.
Work through an example
After first = 6 and second = first, both names refer to 6. Assigning first = 11 changes first to 11; second remains 6 because there is no new assignment to second.
Try before your workbook
After a = 3, b = a, and a = 8, what values should a and b have?
Check my readiness thinking
a is 8 and b is 3. Follow each assignment in order instead of treating b = a as a permanent connection between the names.
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.
Separate a name from the value it currently holds
Paper cards are a useful model: keep the name fixed and change the written value only when its assignment is reached. In Python, assignment binds a name to a value; the card is an introductory model.
Follow an original four-card plan
ORIGINAL FOUR-CARD ASSIGNMENT PLAN
red_count <- 12
blue_count <- red_count + 3
red_count <- 40
red_count <- red_count - blue_count
green_count <- red_count * 2
yellow_count <- green_count / 5Choose legal and useful Python names
| Name | Python naming judgement |
|---|---|
| sticker_count | Valid and descriptive for a sticker total. |
| _count | Valid; an initial underscore is allowed. |
| 2packets | Invalid: begins with a digit. |
| for | Reserved keyword; cannot be an ordinary variable name. |
| A built-in function name, not a keyword; avoid hiding it with a variable. | |
| count and Count | Different identifiers; Python names are case-sensitive. |
A copied numeric value does not become a live formula
ORIGINAL PYTHON ASSIGNMENT EXAMPLE
left = 7
right = left
left = 20
print(left, right)Files for this activity
Use these original PaxaKids practice files with the matching workbook. Work on a local copy in the appropriate editor. Some examples deliberately contain faults to investigate; a downloaded file is not a completed practical test.

Try one step with Paxa!
Trace code in the stated order and preserve exact spelling and case. Use fictional data. Label a prediction, paper trace, simulator run and physical-device test separately; an unperformed test stays Pending. Save personal responses before leaving.
Our Unit 1 learning path
- Lesson 1.1: Recall algorithms and representations
- Lesson 1.2: Purpose and conventions of pseudocode
- Lesson 1.3: Input, output and strings
- Lesson 1.4: Identifiers and assignment
- Lesson 1.5: Arithmetic and translation
- Lesson 1.6: Trace and review a sequence
- Lesson 1.7: Conditions and two-way flow
- Lesson 1.8: IF THEN and indentation
- Lesson 1.9: IF THEN ELSE and decision diagrams
- Lesson 1.10: Ordered ELSEIF and fallback ELSE
- Lesson 1.11: Match flowchart and pseudocode branches
- Lesson 1.12: AND, OR and NOT
- Lesson 1.13: Grouping, precedence and review
- Lesson 1.14: Why software searches
- Lesson 1.15: A successful linear search
- Lesson 1.16: An unsuccessful search and termination
- Lesson 1.17: Practise and communicate the search
- Lesson 1.18: Translate conditions into Python
- Lesson 1.19: One-branch IF programs
- Lesson 1.20: Two-way IF ELSE programs
- Lesson 1.21: Ordered ELIF choices
- Lesson 1.22: Ranges and independent decisions
- Lesson 1.23: Boolean operators in Python
- Lesson 1.24: Design and test recommendations
- Lesson 1.25: Trace, debug and reflect
- Lesson 1.26: Choose data types and recognise Boolean literals
- Lesson 1.27: Set and use Boolean flags
- Lesson 1.28: Explain and identify constants
- Lesson 1.29: Express constants in three algorithm forms
- Lesson 1.30: Use a fixed factor in a calculation
- Lesson 1.31: Cast to Boolean and validate an empty response
- Lesson 1.32: Recall calls and trace return values
- Lesson 1.33: Supply parameters and reuse library code
- Lesson 1.34: Choose and import libraries responsibly
- Lesson 1.35: Round with floor and ceiling
- Lesson 1.36: Use pi and investigate another mathematical feature
- Lesson 1.37: Generate random choices within bounds
- Lesson 1.38: Investigate random real values and review library use
- Lesson 1.39: Retrieve test tables and predict selection outcomes
- Lesson 1.40: Decompose everyday problems
- Lesson 1.41: Decompose programs and organise shared work
- Lesson 1.42: Develop through repeated build/test cycles
- Lesson 1.43: Predict and verify algorithm outcomes
- Lesson 1.44: Choose representative and boundary tests
- Lesson 1.45: Build, execute and review a test plan
- Lesson 1.46: Recall physical inputs and compare transmission media
- Lesson 1.47: Configure a radio group and agree a message scheme
- Lesson 1.48: Send and receive numbers and strings
- Lesson 1.49: Trace numeric message sequences
- Lesson 1.50: Transmit text and use received data in conditions
- Lesson 1.51: Diagnose and extend a message protocol
- Lesson 1.52: Review communication and evidence of testing
- Lesson 1.53: Project 1: Adventure story
- Lesson 1.54: Project 2: Fire, Water, Earth
- Lesson 1.55: Check your progress 1
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 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 · 7.9 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: In red_count <- 12, which item is the identifier? red_count
- Question 2: What changes when red_count is assigned a new number? the value associated with red_count
Worksheet 2
- Question 3: What value is assigned to blue_count on the second line? 15
- Question 4: Immediately after red_count <- 40, what is blue_count? 15
- Question 5: After the next subtraction, what is red_count? 25
Worksheet 3
- Question 6: Which valid name is clearest for a count of stickers? sticker_count
- Question 7: Which statement is accurate? an initial underscore can be valid in Python
Worksheet 4
- Question 8: What value remains associated with right after left = 20? 7
- Question 9: Which output line does this numeric example produce? 20 7
- Question 10: Which symbol performs ordinary assignment in this Python example? =
Worksheet 5
- Question 11: Make four paper cards named red_count, blue_count, green_count and yellow_count. Follow the page 2 plan one line at a time. When a name receives a new value, cross out its old value and write the replacement on that card. Record each card’s history and final value below. Explain why changing red_count does not automatically recompute blue_count. Compare final values with a partner if available; identify actual evidence or leave the peer step Pending. Four-card source activity retained through an original numeric example. red_count history 12,40,25; blue_count 15; green_count 50; yellow_count 10 mathematically (Python / gives 10.0). Unassigned cards remain unassigned until their statements. Only the destination card changes at each assignment. blue_count keeps its previously calculated 15, not 43 or 28, when red_count changes. Require a sequential record and explanation plus real comparison or Pending; no invented fault or score. Grown-up review; personal evidence is required.
Worksheet 6
- Question 12: Choose and justify meaningful identifiers for a fictional packet count and a calculated total. Explain why 2packets and for are unsuitable Python variable names, why _count can be valid and why using print as a variable is unhelpful. Translate the six-line page 2 plan into Python, using = for assignment. State the four final values and explain any difference between a mathematical whole-number result and Python’s display after /. Identify your trace or actual run and any peer/device step still Pending. Require descriptive valid names, digit-leading and reserved-keyword rejection, valid initial underscore, and distinction between built-in print and a keyword. Avoid hiding print. Correct translation changes <- to = and retains expression order and identifiers. Final red_count 25, blue_count 15, green_count 50, yellow_count 10.0 in Python; / returns a floating-point result even for exact division. The mathematical value is 10, not a discrepancy in quantity. State source/method and honest Pending steps. No blanket ASCII-only language restriction or permanent type declaration claim. No numeric scoring. Grown-up review; personal evidence is required.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing Learner’s Book 8 — pages 21–22
- PaxaKids Grade 8 Computing Lesson 1.4: Identifiers and assignment — pages 1–6
Computing for your homeschool day
Explore Identifiers and assignment with this free Grade 8 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
Closed answers are checked in your browser. Drawings and written explanations 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.
Book page references identify the related teaching topic. File-management and responsible-data preparation are original PaxaKids material; orientation or contents pages are not presented as teaching citations for those skills. 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.
