+ "description": "Loop statements may have an <code>else</code> clause; it is executed when the loop terminates through exhaustion of the list (with <code>for</code>) or when the condition becomes false (with <code>while</code>), but not when the loop is terminated by a <code>break</code> statement. This is exemplified by the following loop, which searches for prime numbers. (Yes, this is the correct code. Look closely: the else clause belongs to the for loop, not the if statement.) <small>[Source: <a href='http://docs.python.org/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops'>Python.org tutorial</a>]</small>",
0 commit comments