Loops & Repetition

Loops & Repetition

1
2
3
4
5
6

Understanding count-controlled loops, infinite loops, repeat-until loops, and nested repetition structures across unplugged, visual block, and text-based coding.

Level 1

Y1 โ€” Physical Repetition

Identify repeating patterns in everyday actions and physical routines.

Learning objective

Identify repeating physical actions and count repetition cycles in routines.

Let's Go!

Step media

Learn

A loop is an instruction that tells us to repeat an action. Instead of saying 'clap, clap, clap', we can say 'repeat 3 times: clap'. This makes instructions shorter and easier to follow! In computing, repeating actions allow humans and machines to perform routines efficiently. As you explore the interactive Block Coding Simulator below, focus on how to identify repeating loops in physical routines and state the repeat count.

Interactive Simulator Sandbox
Block Coding Studio:Step 1 โ€ข Bronze Tier
๐Ÿงฉ
Step 1 โ€ข Bronze (Level 1): Drag & Snap - Block Shapes & Grammar

Recognise block categories and shapes. Add a motion block to the empty workspace to initiate your program.

In Progress
๐Ÿ“œScript Stack0 blocks
๐ŸงฉScript Workspace is Empty

Select blocks from the palette on the left to build your program stack.

Target: Assemble the required blocks and run the script.
๐ŸŒฒ
AST StructureEmpty StackStack must initiate with an Event Hat block.
โšก
Execution FlowSequentialChecks linear vs iterative control branches.
๐Ÿ”„
Loop SafetySafeZero infinite loop hanging detected.
๐Ÿงฌ
Clone Lifecycle0 ActiveClean garbage collection via delete-clone.
Block Tree Structure & GrammarValid Grammar

Assemble blocks in the Studio to inspect the syntax tree.

Runtime Trace Log & Performance60 FPS
StepBlock InstructionSprite (X, Y)VariablesStatus
No script execution traces yet. Click ๐Ÿšฉ Go to record runtime data.

Apply Simulator Skills โ€ข Try it yourself

Create a Physical Loop Routine

๐Ÿ”„Direct Simulator Transfer: Step 1 Tasks 1, 2 & 3

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Recognise when an action is repeated.

Developing

Count how many times an action repeats in a simple dance or clapping pattern.

Secure (Goal)

Identify repeating loops in physical routines and state the repeat count.

Mastery

Create original physical repetition routines and explain why repeating beats saves instruction steps.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

Why is it easier to say 'repeat 4 times' instead of saying the action 4 times?

๐ŸŸขSecure Level

Identify repeating loops in physical routines and state the repeat count.

Learning check

Learning Check

What does a loop do in a sequence of instructions?

Answer correctly to unlock the next level.

Great job! You have mastered this step in Loops & Repetition.Not quite right. Review the learn section and try again.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Think-Pair-Share

Teacher notes: Facilitate the Think-Pair-Share routine for 2โ€“3 minutes. Encourage students to connect the prompt to Form (Repeating actions allow humans and machines to perform routines efficiently.).

Achievement pathway

  • Foundation: Recognise when an action is repeated.
  • Developing: Count how many times an action repeats in a simple dance or clapping pattern.
  • Secure: Identify repeating loops in physical routines and state the repeat count.
  • Mastering: Create original physical repetition routines and explain why repeating beats saves instruction steps.

Curriculum links

Curriculum strand: coding/loops-repetition

Outcome: LOOP.01.B.1.1 โ€” Identify repeating patterns in everyday actions and physical routines.

PYP: Form ยท Repeating actions allow humans and machines to perform routines efficiently.

Learner profile: Inquirer

Competency tags

  • unplugged
  • loops
  • repetition
  • patterns

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "What does a loop do in a sequence of instructions?" with a teacher or teaching assistant.

Teacher override: allow

Back to top

Locked level

Level 2: Y2 โ€” Count-Controlled Loops

Complete the previous learning check to unlock this next level.

Level 2

Y2 โ€” Count-Controlled Loops

Use repeat blocks with fixed counts in visual block programs.

Learning objective

Program a sprite to execute actions using a count-controlled repeat block.

Let's Go!

Step media

Learn

In block coding, a 'repeat [N]' block wraps around other blocks like a sandwich. Any blocks inside the repeat loop will execute N times before moving to the next block below. In computing, count-controlled loops execute precise repetitions in digital algorithms. As you explore the interactive Audio Soundboard Simulator below, focus on how to use count-controlled repeat loops to draw regular geometric shapes or repeat multi-block movement scripts.

Interactive Simulator Sandbox
Audio Curriculum:Step 2 โ€ข Bronze Tier
๐ŸŽ™๏ธ
Step 1 โ€ข Bronze (Level 1): Record & Listen - Microphone Input

Press the Record button and speak or trigger audio. Observe the live microphone distance meter and playback waveform.

In Progress
0:00 / 0:08
๐Ÿฅ
Track 1: Drums & 8-Beat GridKick, Snare, Hi-Hat
Vol: 80%
Pan: C
๐ŸŽธ
Track 2: Synth Bass LineLow-end Sub & Groove
Vol: 70%
Pan: C
๐ŸŽน
Track 3: Melody & MIDI Piano RollChords, Arps & Quantize
๐ŸŽน Click keys above to record melody notes
Vol: 85%
Pan: R20
๐ŸŽ™๏ธ
Track 4: Voice Note & Foley FXHost Narration & SFX Ambience
Mic Standby (15cm Distance Recommended)
Vol: 90%
Pan: L15
๐ŸŽญ Live Sound FX & Foley Launchpad4 Audio Triggers

Apply Simulator Skills โ€ข Try it yourself

Program a Square Walk Pattern

๐Ÿ”„Direct Simulator Transfer: Step 2 Tasks 4, 5 & 6

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Place a repeat block around a single movement block.

Developing

Set a repeat count number to move a sprite across a grid.

Secure (Goal)

Use count-controlled repeat loops to draw regular geometric shapes or repeat multi-block movement scripts.

Mastery

Compare a script written with loops to one written linearly without loops, explaining code efficiency.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

How many blocks did you save by using a repeat block instead of repeating code line by line?

๐ŸŸขSecure Level

Use count-controlled repeat loops to draw regular geometric shapes or repeat multi-block movement scripts.

Learning check

Learning Check

If a repeat block is set to 5 and contains 'move 10 steps', how many steps will the sprite move in total?

Answer correctly to unlock the next level.

Great job! You have mastered this step in Loops & Repetition.Not quite right. Review the learn section and try again.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Think-Pair-Share

Teacher notes: Facilitate the Think-Pair-Share routine for 2โ€“3 minutes. Encourage students to connect the prompt to Function (Count-controlled loops execute precise repetitions in digital algorithms.).

Achievement pathway

  • Foundation: Place a repeat block around a single movement block.
  • Developing: Set a repeat count number to move a sprite across a grid.
  • Secure: Use count-controlled repeat loops to draw regular geometric shapes or repeat multi-block movement scripts.
  • Mastering: Compare a script written with loops to one written linearly without loops, explaining code efficiency.

Curriculum links

Curriculum strand: coding/loops-repetition

Outcome: LOOP.02.B.1.2 โ€” Use repeat blocks with fixed counts in visual block programs.

PYP: Function ยท Count-controlled loops execute precise repetitions in digital algorithms.

Learner profile: Communicator

Competency tags

  • block-coding
  • repeat-block
  • count-loops
  • ScratchJr

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "If a repeat block is set to 5 and contains 'move 10 steps', how many steps will the sprite move in total?" with a teacher or teaching assistant.

Teacher override: allow

Back to top

Locked level

Level 3: Y3 โ€” Forever & Infinite Loops

Complete the previous learning check to unlock this next level.

Level 3

Y3 โ€” Forever & Infinite Loops

Construct infinite repetition loops for continuous background animations and game monitoring.

Learning objective

Utilize 'forever' loops to maintain continuous sprite animations and ongoing condition checking.

Let's Go!

Step media

Learn

A 'forever' loop runs continuously until the program is stopped manually. It is used for ongoing tasks like costume animations, background scrolling, or constantly checking if a key is pressed. In computing, infinite loops allow programs to run background tasks continuously. As you explore the interactive Animation Simulator below, focus on how to construct forever loops that continuously monitor game conditions or animate backgrounds.

Interactive Simulator Sandbox
Curriculum:Step 3 โ€ข Bronze Tier
๐ŸŽฌ
Step 1 โ€ข Bronze (Level 1): Moving Pictures - Persistence of Vision

Recognise that a rapid sequence of still images creates the illusion of continuous motion.

In Progress
โšฝ
โšฝ
โšฝ
๐Ÿ’ฅ
โšฝ
โšฝ

Animation Controls

6 FPS Stop-Motion

๐Ÿ“ท Camera Capture & Frame Looping

Capture still drawings and watch persistence of vision connect them into a fluid motion loop.

๐ŸŽฌ Animator Secret:

Persistence of vision keeps images lingering in our retina for 1/16th of a second, blending still pictures into moving cinema!

Apply Simulator Skills โ€ข Try it yourself

Animate a Flying Bird Sprite

๐Ÿ”„Direct Simulator Transfer: Step 3 Tasks 7, 8 & 9

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Identify a forever block in the block palette.

Developing

Wrap a costume-switching script inside a forever loop to create walking animations.

Secure (Goal)

Construct forever loops that continuously monitor game conditions or animate backgrounds.

Mastery

Explain when to use a forever loop versus a count-controlled loop in game design.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

What happens if you put a block *below* a forever loop? Why does it never run?

๐ŸŸขSecure Level

Construct forever loops that continuously monitor game conditions or animate backgrounds.

Learning check

Learning Check

Which type of loop never stops repeating until the red stop button is clicked?

Answer correctly to unlock the next level.

Great job! You have mastered this step in Loops & Repetition.Not quite right. Review the learn section and try again.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Think-Pair-Share

Teacher notes: Facilitate the Think-Pair-Share routine for 2โ€“3 minutes. Encourage students to connect the prompt to Change (Infinite loops allow programs to run background tasks continuously.).

Achievement pathway

  • Foundation: Identify a forever block in the block palette.
  • Developing: Wrap a costume-switching script inside a forever loop to create walking animations.
  • Secure: Construct forever loops that continuously monitor game conditions or animate backgrounds.
  • Mastering: Explain when to use a forever loop versus a count-controlled loop in game design.

Curriculum links

Curriculum strand: coding/loops-repetition

Outcome: LOOP.03.B.1.3 โ€” Construct infinite repetition loops for continuous background animations and game monitoring.

PYP: Change ยท Infinite loops allow programs to run background tasks continuously.

Learner profile: Thinker

Competency tags

  • forever-loop
  • infinite-loop
  • background-script
  • Scratch

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "Which type of loop never stops repeating until the red stop button is clicked?" with a teacher or teaching assistant.

Teacher override: allow

Back to top

Locked level

Level 4: Y4 โ€” Repeat Until Conditionals

Complete the previous learning check to unlock this next level.

Level 4

Y4 โ€” Repeat Until Conditionals

Implement conditional loops that repeat actions until a specific sensing condition is met.

Learning objective

Build scripts using 'repeat until' loops governed by touch or sensing conditions.

Let's Go!

Step media

Learn

A 'repeat until [condition]' loop evaluates its condition before every iteration. It repeats the enclosed actions continuously until the condition evaluates to true, then stops looping and moves to the next block. In computing, conditional loops enable dynamic algorithmic responses based on real-time environmental data. As you explore the interactive Spreadsheet Simulator below, focus on how to program game sprites to move continuously until hitting an obstacle or reaching a target.

Interactive Simulator Sandbox
๐Ÿ“Š
Spreadsheet StudioStep 4 โ€ข Bronze Tier
|
A1fx
ABC
1ItemAmount
2Apples5
3Bananas3
4Carrots2
5Total
Challenge: Click cell B5 to inspect how the AutoSum formula adds up column B!

Apply Simulator Skills โ€ข Try it yourself

Program an Obstacle-Stopping Vehicle

๐Ÿ”„Direct Simulator Transfer: Step 4 Tasks 10, 11 & 12

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Identify the sensing condition slot in a repeat-until block.

Developing

Combine a touching-color or touching-mouse sensor with a repeat-until loop.

Secure (Goal)

Program game sprites to move continuously until hitting an obstacle or reaching a target.

Mastery

Debug scripts where repeat-until conditions never become true (preventing infinite hanging).

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

Why is 'repeat until touching wall' better than 'repeat 20 times' when driving toward an unknown distance?

๐ŸŸขSecure Level

Program game sprites to move continuously until hitting an obstacle or reaching a target.

Learning check

Learning Check

When does a 'repeat until [touching edge]' loop stop repeating its inner blocks?

Answer correctly to unlock the next level.

Great job! You have mastered this step in Loops & Repetition.Not quite right. Review the learn section and try again.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Think-Pair-Share

Teacher notes: Facilitate the Think-Pair-Share routine for 2โ€“3 minutes. Encourage students to connect the prompt to Connection (Conditional loops enable dynamic algorithmic responses based on real-time environmental data.).

Achievement pathway

  • Foundation: Identify the sensing condition slot in a repeat-until block.
  • Developing: Combine a touching-color or touching-mouse sensor with a repeat-until loop.
  • Secure: Program game sprites to move continuously until hitting an obstacle or reaching a target.
  • Mastering: Debug scripts where repeat-until conditions never become true (preventing infinite hanging).

Curriculum links

Curriculum strand: coding/loops-repetition

Outcome: LOOP.04.B.1.4 โ€” Implement conditional loops that repeat actions until a specific sensing condition is met.

PYP: Connection ยท Conditional loops enable dynamic algorithmic responses based on real-time environmental data.

Learner profile: Principled

Competency tags

  • repeat-until
  • conditional-loops
  • sensing
  • game-mechanics

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "When does a 'repeat until [touching edge]' loop stop repeating its inner blocks?" with a teacher or teaching assistant.

Teacher override: allow

Back to top

Locked level

Level 5: Y5 โ€” Nested Loops

Complete the previous learning check to unlock this next level.

Level 5

Y5 โ€” Nested Loops

Place loops inside other loops to construct multi-dimensional grids, patterns, and nested iterations.

Learning objective

Design algorithms with nested loops to create 2D grid layouts and complex geometric patterns.

Let's Go!

Step media

Learn

Nested loops occur when one loop (the inner loop) is placed entirely inside another loop (the outer loop). For every single pass of the outer loop, the inner loop completes all of its iterations. In computing, nested loops enable the automated generation of complex multi-dimensional patterns and structures. As you explore the interactive Python Console Simulator below, focus on how to use nested loops with pen blocks to draw complex tiled patterns or generate 2D grid coordinates.

Interactive Simulator Sandbox
Python Curriculum:Step 5 โ€ข Bronze Tier
๐Ÿ
Step 1 โ€ข Bronze (Level 1): Code Typing - The Print Statement

Type print("Hello World!") in the code editor and click โ–ถ Run Code to execute your first Python statement.

In Progress
๐Ÿmain.pyClean
1
Snippets:
Target: Type print("Hello World!") and run your script.
Interactive Python REPL (v3.12.2)
Python 3.12.2 (tags/v3.12.2:5acc80f, Feb 6 2024, 01:22:40) [MSC v.1938 64 bit (AMD64)]
Type "help", "copyright", "credits" or "license" for more information.
>>> Ready to execute scripts.
๐ŸŒฒ
AST Root NodeModuleAbstract Syntax Tree representation.
๐Ÿท๏ธ
Symbol Scope0 IdentifiersGlobal variable memory allocations.
๐Ÿ›ก๏ธ
Linter & PEP 8CleanZero syntax or indentation warnings.
โšก
Complexity & LoopsO(1)Bounded iteration & recursion safety.
Python Abstract Syntax Tree (AST)Valid AST

Type Python code in the IDE to view real-time AST node tree parsing.

Runtime Variable Symbol TableStack Memory
IdentifierTypeValueScope
No active variables in memory. Assign variables (e.g. score = 100) to inspect.

Apply Simulator Skills โ€ข Try it yourself

Draw a Grid of Geometric Shapes

๐Ÿ”„Direct Simulator Transfer: Step 5 Tasks 13, 14 & 15

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Recognize an inner loop placed inside an outer loop.

Developing

Calculate the total number of iterations in a nested loop (outer count x inner count).

Secure (Goal)

Use nested loops with pen blocks to draw complex tiled patterns or generate 2D grid coordinates.

Mastery

Optimize nested loop algorithms to avoid performance lag in complex graphical applications.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

If the outer loop runs 3 times and the inner loop runs 4 times, how many total times does the inner action run?

๐ŸŸขSecure Level

Use nested loops with pen blocks to draw complex tiled patterns or generate 2D grid coordinates.

Learning check

Learning Check

If an outer loop runs 5 times and contains an inner loop that runs 4 times, how many total times do the blocks inside the inner loop run?

Answer correctly to unlock the next level.

Great job! You have mastered this step in Loops & Repetition.Not quite right. Review the learn section and try again.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Think-Pair-Share

Teacher notes: Facilitate the Think-Pair-Share routine for 2โ€“3 minutes. Encourage students to connect the prompt to Perspective (Nested loops enable the automated generation of complex multi-dimensional patterns and structures.).

Achievement pathway

  • Foundation: Recognize an inner loop placed inside an outer loop.
  • Developing: Calculate the total number of iterations in a nested loop (outer count x inner count).
  • Secure: Use nested loops with pen blocks to draw complex tiled patterns or generate 2D grid coordinates.
  • Mastering: Optimize nested loop algorithms to avoid performance lag in complex graphical applications.

Curriculum links

Curriculum strand: coding/loops-repetition

Outcome: LOOP.05.B.1.5 โ€” Place loops inside other loops to construct multi-dimensional grids, patterns, and nested iterations.

PYP: Perspective ยท Nested loops enable the automated generation of complex multi-dimensional patterns and structures.

Learner profile: Knowledgeable

Competency tags

  • nested-loops
  • 2D-grids
  • pattern-generation
  • iteration

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "If an outer loop runs 5 times and contains an inner loop that runs 4 times, how many total times do the blocks inside the inner loop run?" with a teacher or teaching assistant.

Teacher override: allow

Back to top

Locked level

Level 6: Y6 โ€” Loop Optimization & Text Loops

Complete the previous learning check to unlock this next level.

Level 6

Y6 โ€” Loop Optimization & Text Loops

Transition loop concepts into text-based languages (for/while) and analyze computational loop efficiency.

Learning objective

Write text-based 'for' and 'while' loops in Python and analyze algorithmic loop complexity.

Let's Go!

Step media

Learn

In text coding like Python, `for i in range(10):` runs a loop a fixed number of times, while `while condition:` repeats as long as a condition remains True. Proper indentation defines the code inside the loop body. In computing, loop optimization and iteration structures are fundamental to efficient software execution. As you explore the interactive Microcontroller Simulator below, focus on how to construct text-based while loops with counter variables and condition updates.

Interactive Simulator Sandbox
Physical Computing:Step 6 โ€ข Bronze Tier
๐Ÿค–
Step 1 โ€ข Bronze (Level 1): Hardware Recognition & Architecture

Identify the physical hardware parts of the microcontroller: LED matrix, processor, edge pins, and buttons.

In Progress
๐Ÿ“ก RF
0
1
2
3V
GND
๐Ÿ”ŠBuzzer:Silent
โš™๏ธActuator:Centered (90ยฐ)
๐Ÿ“กRadio Packet:Ch: 1 (Idle)
Target: Click the LEDs to draw an icon or trigger hardware inputs.
โšก
GPIO Logic Voltage3.3 V LogicEdge pin logic level reference.
ใ€ฐ๏ธ
PWM Duty Cycle50.0% (1.5ms)Servo Pulse Width Modulation.
๐Ÿ›ก๏ธ
Circuit SafetySafe / NormalZero short circuits between 3V and GND.
๐Ÿ“ป
RF 2.4GHz BandConnectedBroadcast packet telemetry stream.
Sensor Raw ADC & I2C Telemetry10-Bit ADC
Sensor InputBus TypeRaw DigitalConverted Unit
โ˜€๏ธ Photocell (Light)Internal Matrix12850% Lux
๐ŸŒก๏ธ Thermistor (Temp)I2C Subsystem49024ยฐC
๐Ÿ“ณ Accelerometer (X,Y,Z)LSM303AGR I2C(0, 0, 1024)1.0g Flat
๐Ÿ”Œ GPIO Pin 0Edge Connector00.0V (Low)
Oscilloscope Signal Waveform50 Hz PWM
CH1: GPIO Pin 0 (PWM Servo) | 20ms/div | 3.3V pk-pk

Apply Simulator Skills โ€ข Try it yourself

Build a Python Countdown Loop

๐Ÿ”„Direct Simulator Transfer: Step 6 Tasks 16, 17 & 18

Now that you've practiced the virtual mechanics in the simulator above, apply those exact skills in your real computer environment:

๐ŸŒŸ Student Project GuideSuccess Criteria & WAGOLL (What A Good One Looks Like)โ–พ

๐ŸŽฏ Task Success Criteria (Rubric)

Foundation

Identify 'for' and 'while' keywords in simple Python code.

Developing

Translate a block repeat loop into a Python `for i in range(N):` statement.

Secure (Goal)

Construct text-based while loops with counter variables and condition updates.

Mastery

Evaluate nested loop complexity O(n^2) and refactor inefficient loop structures to improve program execution speed.

๐Ÿ‘€ What A Good One Looks Like (WAGOLL)

๐Ÿ“
Save to Your Website Portfolio:

When you finish creating your project in your software, copy the share link or take a screenshot and publish it onto your student portfolio website!

Reflect

๐ŸŽฏ

Self-Assessment & Reflection

What happens in a text-based while loop if you forget to update the counter variable inside the loop?

๐ŸŸขSecure Level

Construct text-based while loops with counter variables and condition updates.

Learning check

Learning Check

In Python text coding, how is the code inside a loop body identified?

Answer correctly to complete this strand.

Great job! You have mastered this step in Loops & Repetition.Not quite right. Review the learn section and try again.
Teacher setup, curriculum links and progress descriptors

Spark support

Routine: Think-Pair-Share

Teacher notes: Facilitate the Think-Pair-Share routine for 2โ€“3 minutes. Encourage students to connect the prompt to Reflection (Loop optimization and iteration structures are fundamental to efficient software execution.).

Achievement pathway

  • Foundation: Identify 'for' and 'while' keywords in simple Python code.
  • Developing: Translate a block repeat loop into a Python `for i in range(N):` statement.
  • Secure: Construct text-based while loops with counter variables and condition updates.
  • Mastering: Evaluate nested loop complexity O(n^2) and refactor inefficient loop structures to improve program execution speed.

Curriculum links

Curriculum strand: coding/loops-repetition

Outcome: LOOP.06.B.1.6 โ€” Transition loop concepts into text-based languages (for/while) and analyze computational loop efficiency.

PYP: Reflection ยท Loop optimization and iteration structures are fundamental to efficient software execution.

Learner profile: Reflective

Competency tags

  • for-loop
  • while-loop
  • python
  • algorithm-efficiency
  • optimization

Gate support

Accessibility alternative: Students may verbally explain or point to the correct answer for "In Python text coding, how is the code inside a loop body identified?" with a teacher or teaching assistant.

Teacher override: allow

๐ŸŽ’ Students Home โ†’

Install App for Classroom

One-click fullscreen learning for Chromebooks, iPads & PCs

๐Ÿ–ฅ๏ธ
Distraction-FreeFullscreen window without browser tabs or search clutter.
โšก
1-Tap LaunchPin directly to the Chromebook shelf, iPad dock, or Windows taskbar.
๐Ÿ“ถ
Classroom SpeedInstant cached loads for lessons and simulators even on school Wi-Fi.
๐Ÿ”’
Safe & Ad-Free100% free, private, and no app store logins or passwords needed.
  1. 1
    Click the Install button

    In your browser, look at the right end of the top web address bar for the ๐Ÿ’ป Install or โค“ icon.

  2. 2
    Confirm "Install"

    A popup will ask if you want to install "Ed Tech Hub". Click Install.

  3. 3
    Pin to your Shelf

    Right-click (or two-finger tap) the app icon in your Chromebook bottom shelf and select "Pin"!