Learn about the repeat commands in MartyBlocks
16 of 16 linked standards shown.
| Curriculum area | Linked standards |
|---|---|
| Digital Technologies, Design & technologies: Design & Technologies | |
| Digital Technologies, Design & technologies: Digital Technologies |
Select a code to read the full standard.
| Curriculum area | Linked standards |
|---|---|
| General standards |
Select a code to read the full standard.
| Curriculum area | Linked standards |
|---|---|
| Health and Wellbeing: Mental, Emotional, Social and Physical Wellbeing | |
| Literacy & English: Listening and Talking | |
| Literacy & English: Writing | |
| Technologies: Computing Science |
Select a code to read the full standard.
| Curriculum area | Linked standards |
|---|---|
| Computing, Design and Technology: Computing |
Select a code to read the full standard.
| Curriculum area | Linked standards |
|---|---|
| International Society for Technology in Education (ISTE) |
Select a code to read the full standard.
| Curriculum area | Linked standards |
|---|---|
| Elementary Technology Applications: Grade 3 to Grade 5 |
Select a code to read the full standard.
In this lesson, students will continue to build upon their programming knowledge using repeat blocks, or loops, with MartyBlocks. Students will understand that they can use loops to reduce the number of lines of code that they have to write by the end of the lesson through using a combination of computational thinking and the MartyBlocks editor.
Awareness of some block names, awareness of planning diagrams
| Timing | Activity | Possible adaptations |
|---|---|---|
| — | Warm UpShare the objectives and success criteria from the presentation. Play the word game that requires learners to repeat everything that everyone says before them:
Depending on class size, it might be wise to have this done in smaller groups so that less time is taken. The idea of the game is to get used to things repeating. Read the story text from the presentation. When you reach the section on planning and comparing the blocks between MartyBlocks Jr and MartyBlocks, have learners engage with the group tasks in their workbooks. | — |
| Timing | Activity | Possible adaptations |
|---|---|---|
| — | Get LearningHave learners look at and discuss two of the repeat blocks in the Control section:
The presentation shows two examples of code the village children have created in MartyBlocks. After time for learners to discuss how they think they would improve the code, a mouse click will reveal an example for a more efficient version, which makes use of the repeat block. Do not limit the discussion to this as the only correct answer. Encourage learners to compare any contrasting thoughts they may have had with what is presented on the slide. |
| Timing | Activity | Possible adaptations |
|---|---|---|
| — | Cool DownBring learners back together to discuss the challenges they faced and overcame. Have groups model their creations and explain what is happening, when. Encourage other groups to compare their work and ask questions to deepen their understanding of the processes.
Carry out any end of lesson routines. Log off devices and clear everything away. | — |
Show learners the plan that the village children used for one of the code comparisons: repeat block-free code and repeat block code. Explain how the rhombus shape indicates what the repeat block will do: the arrow controls the flow for the program, the repeat block will go back to an earlier block of code, and everything, after where the arrow points, is repeated. The teacher guide explains this with the examples beside the plan without a repeat.
Here is a very basic block of code with Marty acting to it.
| — |
| — | Time for PracticeThe next slide will show a very basic example of a plan and code without the repeat block, and a video of Marty carrying out the code, and the transformed plan and code with the repeat block. The updated code with the repeat block is displayed, below. Have learners consult their workbooks. In it, they will find three plans, without any use of the shape for the repeat block. Challenge learners to rewrite the plan, using the rhombus shape to indicate where the repeat would interact with the code. Then, have learners create the code in MartyBlocks and test the code in action; does it do what the plan asks? The updated plan with the associated code blocks are in the teacher guide. This will require a bit of time for learners to discuss, plan and test. | SupportHave cut-outs of the planning shapes to support arranging them, first, then learners could trace or copy their physical plan. The emphasis has to be on the plan making sense and taken from the shapes looking perfect. Alternatively, you may want to prepare sufficient shapes to allow learners to glue them into the workbook. |
Challenge learners to include two separate loops within a program with an action to separate the two blocks.