A while loop repeats as long as its condition is True: python count = 0 while count < 5: print(count) count += 1 Output: , , , , (each on its own line). The loop checks the condition before each iteration.
When count reaches , count < 5 is False, and the loop stops. Structure: while keyword, condition, colon, indented body. The body must eventually make the condition False, or the loop runs forever.