π Repeat While
Published Aug 4, 2021Updated May 15, 2024
Contribute to Docs
The π statement repeats a code block while as long as the given condition is π (true). And if the condition is never π (false), the code block will be ignored and skipped.
Due to the ease of use of the π (for-in) statement, π is only used seldomly.
Infinite Loop
π ππ π ππ π€It goes on and on and onπ€βοΈππ
This program will infinitely print βIt goes on and on and onβ.
It goes on and on and onIt goes on and on and onIt goes on and on and on...
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn Emojicode on Codecademy
- Career path
Computer Science
Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!Includes 6 CoursesWith Professional CertificationBeginner Friendly75 hours - Free course
Learn Emojicode
π Learn about Emojicode, a programming language that consists of emojis! πBeginner Friendly1 hour