Please enable JavaScript to use CodeHS

Creative Computing (HS)

Lesson 2.12 While Loops in Karel

Description

While loops allow us to repeat a section of code as long some condition is true.


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