0

while loop"Once it evaluates to False, the next section of code is executed. "I didn't understood what he meant by next sect

19th Jun 2017, 6:08 PM
kazuto
3 ответов
+ 1
It breaks out of the loop and executes the code below it.
19th Jun 2017, 6:15 PM
Tim
0
The loop code is the portion of indented code following the while. The "next section" is whatever follows that portion (starting with the first non-indented line below the block). Example: while (condition): action(1) // Part of the "while" block action(2) // Still part of the block action(3) // No longer indented, so the next section starts here
20th Jun 2017, 7:54 AM
Bogdan Sass
Bogdan Sass - avatar
0
that must have been rather perplexing indeed, at the time anyway
27th Jun 2017, 5:29 PM
goofygoober16