5 concepts of programming Micro:Bit Version

If you are stuck have you checked the "my code isn't working flowchart"

Sequence

In programming, sequence refers to the ordered execution of instructions, where each statement is executed one after the other. 

Selection

Selection involves using conditional statements (such as if, else, and switch) to make decisions in a program, allowing different code blocks to be executed based on specified conditions. 

Loops

Loops enable the repetition of a set of instructions until a certain condition is met. Common loop structures include for loops, while loops, and do-while loops. 

Variables

Variables are symbolic names that represent storage locations in a program, allowing the manipulation and storage of data. They can hold various types of information, such as numbers, text, or complex data structures.

Subroutines

Subroutines, are reusable blocks of code that perform a specific task. They help in organizing code, improving readability, and promoting code reusability.

Example code for the concepts shown above