- 3
Loops
Loops
2 Respuestas
+ 3
In:
while condition:
code1
code2
When line "while condition:" is reached, condition is checked, condition can be a boolean.
if condition is True, loop will run code1, it can be normal code, after that it will return back to the line "while condition:" and it will continue same carousel until condition appears to be false.
When the condition appears to be false, loop stops and continues from code2.