Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 10 cze 2017 · A while loop checks the condition (well, the expression) behind the while before each iteration and stops executing the loop body when the condition is False. So while False means that the loop body will never execute.

  2. 16 sty 2019 · A while loop evaluates a condition and executes the code in its block when the condition evaluates to True, otherwise it exits the loop. The condition True causes the loop to continue infinitely since it can only ever evaluate to True, while False causes the loop to immediately exit without running the code in its block.

  3. 13 mar 2014 · The condition is the loop is actually a "pre-" condition (as opposed to post-condition "do-while" loop in, say, C). It tests the condition for each iteration including the first one. On first iteration the condition is false, thus the loop is ended immediately.

  4. The while Loop. With the while loop we can execute a set of statements as long as a condition is true.

  5. In this tutorial, you'll learn about indefinite iteration using the Python while loop. You’ll be able to construct basic and complex while loops, interrupt loop execution with break and continue, use the else clause with a while loop, and deal with infinite loops.

  6. 25 cze 2021 · In simple words, The while loop enables the Python program to repeat a set of operations while a particular condition is true. When the condition becomes false, execution comes out of the loop immediately, and the first statement after the while loop is executed.

  7. The while loop evaluates condition, which is a boolean expression. If the condition is True, body of while loop is executed. The condition is evaluated again. This process continues until the condition is False. Once the condition evaluates to False, the loop terminates.

  1. Ludzie szukają również