Loops | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

Loops

Loops

18th Sep 2019, 5:17 PM
Frederick Stather
Frederick Stather - avatar
2 Answers
+ 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.
18th Sep 2019, 5:49 PM
Seb TheS
Seb TheS - avatar
18th Sep 2019, 5:29 PM
Aaron Eberhardt
Aaron Eberhardt - avatar