A while loop instructs your computer to continuously execute your code based on the value of a condition. The loop will keep iterating as long as the condition remains true.
The code while x < 7: sets a condition for a while loop stating that the variable x must be less than 7. The code begins with the distinguishing keyword while. And, like functions and other expressions that start a distinct code block, it ends with a colon. The while loop will iterate until the condition is false.
In Python, the keyword break lets you escape a loop without triggering any else statement that follows it in the loop.
Fill in the blank: A while loop instructs your computer to continuously execute your code based on the value of a _____.
How confident are you in this answer?