Please enable JavaScript to use CodeHS

Intro to Programming with Karel and micro:bit

Lesson 6.1 While Loops in Karel

Description

In this lesson we introduce a new type of loop: while loops. While loops allow Karel to repeat code while a certain condition is true. While loops allow us to create general solutions to problems that will work on multiple Karel worlds, rather than just one.


Objective

Students will be able to…
* Explain the purpose of a while loop
* Create while loops to repeat code while a condition is true
* Utilize while loops to solve new types of problems
* Test their solutions on different Karel worlds