Curriculum
- 10 Sections
- 29 Lessons
- 10 Weeks
Expand all sectionsCollapse all sections
- Micro:bit12
- 1.11. Introduction of Micro:bit
- 1.21.1 Clap Hearts (Micro:bit)
- 1.31.2 Dice (Micro:bit)
- 1.41.3 Heartbeat Animation (Microbit)
- 1.51.4 Juke Box (Micro:bit)
- 1.61.5 Night Light (Micro:bit)
- 1.71.6 Step Counter (Micro:bit)
- 1.81.7 Sunlight Sensor (Micro:bit)
- 1.91.8 Temperature Sensor (Micro:bit)
- 1.101.9 Tilt Alarm (Micro:bit)
- 1.111.10 Scroll Name(Micro:bit)
- 1.12Introduction of Micro:bit(Quiz)10 Minutes13 Questions
- Basic Blocks3
- Input Blocks3
- Music Blocks3
- Led Blocks3
- Radio Blocks3
- Loops Blocks3
- Logic Blocks3
- Variable Block3
- Math Blocks3
Loops Block-List
Blocks |
Description |
![]() |
Run part of the program the number of times you say. |
|
Repeat code while a Boolean condition is true.
The while loop has a condition that evaluates to a Boolean value. The condition is tested before any code runs. Which means that if the condition is false, the code inside the loop doesn’t execute. |
|
Run part of the program the number of times you say using an index variable. |
|
Run part of the program for each element in a list. |
![]() |
Run part of the program in a loop continuously at a time interval.
If you want to run some code continuously, but on a time interval, then use an every loop. You set the amount of time that the loop waits before the code inside runs again. This is similar to a forever loop, in that it runs continuously, except that there’s a time interval set to wait on before the loop runs the next time. This loop is useful when you want some of a program’s code run on a schedule. |
![]() |
Break out of the current loop and continue the program. |
![]() |
Skip the rest of the code in a loop and start the loop again. |