Lesson 5: While Loops

One issue with lable and goto is that they can create spaghetti code if used incorrectly. This means our code gets very messy and hard to trace – and therefore debug!

In this lesson we will learn how to use while loops, making our code much neater.

You can find the slides at the link below, either as Google Slides or as an Adobe PDF download.

⚡ Need to reflash your Micro:bit? Click here for instructions.

Now, complete the activities below.

Scroll to Top