We now have a full tutorial covering the basics of loops. We start off with while loops, showing how they can be a great way to repeat code in interesting ways, then we introduce for loops as a shortcut syntax for common looping scenarios. We finish off with nested for loops, a technique that students find quite useful when making drawings, animations, and games (think of all the grids!).
In the challenges, students practice loop syntax to make a ruler, a landscape, and lined paper.
In the final project, students use everything they've learn about loops to turn a simple house into a way more impressive house - with grass, trees, tiling, windows, and more. We've seen some great ones already!
Check out the full loops curriculum here!
No comments:
Post a Comment