Learning objective
- To adapt existing code by changing loops and variables to create a new outcome.
Success criteria
- I can alter existing code to achieve a
This content is for subscribers only. Join for access today.
National curriculum
Computing
Pupils should be taught to:
- Design,
This content is for subscribers only. Join for access today.
Cross-curricular links
English
Spoken language
Pupils should
This content is for subscribers only. Join for access today.
Before the lesson
This content is for subscribers only. Join for access today.
Lesson plan
Recap and recall
Explain that the children will revisit prior learning about Python. Display the Presentation: 3, 2, 1 and hand out whiteboards and pens. Read the slide aloud and allow time for the children to record their responses
This content is for subscribers only. Join for access today.
Extended-mode explainer videos
How to extend your display to view the lesson page and preseantion mode simultaneously. Choose your operating system below to watch the video
If you need further support with extending your display,
please contact [email protected].
Extended-mode explainer video: For Mac
Extended-mode explainer video: For Windows
Adaptive teaching
Pupils needing extra support
- Could verbally explain the similarities and differences between the two code examples instead of annotating so they can focus on reasoning about changes without the added writing demand.
- Could use the remix station as a guided space to talk through ideas using the prompts before editing their code.
- Could highlight the outer and inner loops using two different colours to help track which part of the code controls rows and columns.
Pupils working at greater depth
- Should make purposeful changes to loop values, pauses or direction that alter timing, rhythm or movement in a controlled way, explaining how these changes affect the outcome.
- Should predict the effect of specific edits before running the program and explain whether the result matched their expectation.
- Could use comments throughout the project to explain both what sections of code do and why particular remix choices were made.
- Could support others at the remix station by explaining how small changes to loops or values lead to larger visual effects.
This content is for subscribers only. Join for access today.
Assessing progress and understanding
Pupils with secure understanding indicated by: adapting existing code to create a
This content is for subscribers only. Join for access today.
Vocabulary definitions
-
hash symbol
A symbol that starts a comment which is ignored by the program when it runs.
-
.hex file
The file type that stores a program for the micro:bit.
This content is for subscribers only. Join for access today.