A while loop is one type of loop that will go on forever while some condition is true (or false).
You can add the word “not” DIRECTLY AFTER “while” if you want to say while something is not true.
Syntax-
while # condition X:
while not #condition X:
Key idea: the condition in the while loop has to eventually be made false by the body of the while loop. If it never becomes false, the loop will go on forever, resulting in a runtime error.