Sujet : Re: Tricher au scrabble...
De : yves (at) *nospam* free.invalid (yves)
Groupes : fr.comp.lang.pythonDate : 07. Dec 2023, 19:00:30
Autres entêtes
Organisation : Guest of ProXad - France
Message-ID : <6572083e$0$10105$426a74cc@news.free.fr>
References : 1 2 3 4 5 6 7 8
User-Agent : Pan/0.149 (Bellevue; 4c157ba)
Le 7 Dec 2023 15:57:34 GMT, Stefan Ram a écrit:
("The Python Language Reference", Release 3.13.0a0).
Oui, j'en profite pour rappeler l'aide intégrée au prompt python :
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
help("while")
The "while" statement
*********************
The "while" statement is used for repeated execution as long as an
expression is true:
while_stmt ::= "while" assignment_expression ":" suite
["else" ":" suite]
This repeatedly tests the expression and, if it is true, executes the
first suite; if the expression is false (which may be the first time
it is tested) the suite of the "else" clause, if present, is executed
and the loop terminates.
A "break" statement executed in the first suite terminates the loop
without executing the "else" clause’s suite. A "continue" statement
executed in the first suite skips the rest of the suite and goes back
to testing the expression.
Related help topics: break, continue, if, TRUTHVALUE
@+
-- Yves