Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
A while loop lets us repeat code **as long as a [condition][1] is true**. In Karel, a while loop looks like: while(frontIsClear()){ move(); } This keeps moving karel as long as the front is clear. [1]: http://codehs.com/glossary/term/6