Python6 tutorials

Programming Fundamentals with Python

Build core Python skills — for/while loops, if/elif/else, functions, and lists — with hands-on Beaver Board examples.

Storing Values: Variables

BeginnerPython

Learn how to store numbers and text in variables and show them on the OLED screen. Variables are the building blocks of every program.

VariablesOLEDProgrammingBeginner

If and Else

BeginnerPython

Use if/else to make your program choose between two paths. Check whether Switch A is pressed and light a different LED for each answer.

LogicIf/ElseSwitchesLEDProgrammingBeginner

Repeat with for

BeginnerPython

Use a for loop to repeat an action an exact number of times. Blink LEDs, play tones, and count — all without copying the same code over and over.

LoopsForLEDBuzzerProgrammingBeginner

Loop Until: while

BeginnerPython

Use a while loop to keep repeating code as long as a condition stays true. Count button presses and stop automatically when the target is reached.

LoopsWhileInputOLEDProgrammingBeginner

Write Your Own Function

IntermediatePython

Group code into reusable functions with def. Call the same function multiple times without repeating yourself, and pass in parameters to change the behaviour.

FunctionsdefParametersLEDBuzzerProgrammingIntermediate

Score Counter Challenge

IntermediatePython

Put it all together: variables, if/else, while loops, and functions. Build a two-player score tracker where the first to 5 points wins and the board celebrates with lights and sound.

VariablesFunctionsWhileIf/ElseInputBuzzerOLEDProgrammingIntermediate