GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing syntaxdb.com — While Loop in Python - SyntaxDB - Python Syntax Reference
LanguageVersion: 3.4.3Categories
Control FlowWhile Loop in PythonThe while loop executes a block of code while a boolean expression evaluates to true. It terminates as soon as the expression evaluates to false. The boolean expression is evaluated before each iteration. SyntaxNotesBecause the boolean expression is evaluated before each iteration, the block of code executes ONLY if the boolean_expression evaluates to true. If a guarantee is needed for the block of code to run at least once, use the do-while loop. boolean_expression results in either a true or false output. There can also be multiple boolean expressions within the parentheses (booleanExpression). The boolean expressions are connected through logical operators (&&, ||, !). Example
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |