newbie question
Peter Hansen
peter at engcorp.com
Wed Feb 9 18:17:46 EST 2005
doodle4 at gmail.com wrote:
> What is the python equivalent of the following statement?
>
> while (n--)
>
> Thank you.
That depends on a number of things, including whether "n"
is declared as "volatile", and whether you consider the
above as an executable piece of code (it is not), or just a
code snippet...
Roughly but somewhat facetiously speaking, the answer is this:
n = -1
(Maybe describing what you are trying to accomplish would
be more useful than showing snippets of code without
explaining what you are expecting it to do.)
-Peter
More information about the Python-list
mailing list