Coding
Free lessons and practice worksheets for coding — worked examples, common mistakes, and step-by-step solutions.
- 01Coding3 min read
Algorithms & Variables
An algorithm is a step-by-step sequence of instructions designed to solve a specific problem or perform a calculation. Variables serve as containers that store and update values as the algorithm executes. Together, algorithms and variables form the foundation of computational problem-solving, where each instruction modifies variable values according to predetermined rules.
- 02Coding3 min read
Coding with Coordinates
Coding with coordinates involves using numerical pairs to specify exact positions on a screen or grid within programming environments. Most coding systems use a coordinate plane where (0, 0) represents the top-left corner, x-values increase moving right, and y-values increase moving down. This system enables precise control over object placement, movement, and graphical elements in programs.
- 03Coding3 min read
Mathematical Modelling (Coding)
Mathematical modeling with coding translates real-world relationships into computational formulas and algorithms. This approach uses programming constructs like variables, loops, and conditional statements to simulate processes such as population growth, financial calculations, or physical motion. The model's accuracy depends on how well the code captures the underlying mathematical relationship.
- 04Coding3 min read
Sequences & Instructions
Sequences in programming represent ordered sets of instructions that execute one after another, where each step can modify stored values called variables. The order of operations determines the final outcome, making sequencing a fundamental concept in computational thinking. A simple sequence might start with a value of 0 and add 3 repeatedly: 0 → 3 → 6 → 9 → 12.