Please enable JavaScript to use CodeHS

Intro to Programming with Karel the Dog (Ace)

Lesson 5.2 More Practice with While Loops

Description

In this lesson we’ll practice solving more problems with 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


Activities

These are all the activities included in the lesson

5.2.1 Big Tower
5.2.2 Put Balls Away
5.2.3 Time Capsule
5.2.4 Reflection: While Loops