[Tutor] Hi!
Amit Saha
amitsaha.in at gmail.com
Tue Nov 12 23:48:28 CET 2013
Hello,
On Sun, Nov 10, 2013 at 7:04 AM, Vlad Olariu
<florinvlad.olariu at gmail.com> wrote:
> Hello. I am new to python and mailing lists. Where should I post some code
> if I need to?
Welcome. Here is an example of a post with code. Assume that I am
explaining to someone how they can exit out a while loop before the
condition violated the first time:
A while loop is an example of an "entry controlled" loop. This means
that the condition is checked before entering the loop. Hence, this
means if your loop condition was violated during the previous
iteration, but not at the beginning, your loop will terminate after
the first violation, not before it.
Here is a simple example:
>>> a = 1
>>> while a < 5:
... a = a+3
... print a
...
4
7
.. and so on. Also switch to "Plain Text" in your Gmail window before
you post. (if you do not know what this means, please search on the
Web a bit).
Good Luck.
Best.
Amit.
--
http://echorand.me
More information about the Tutor
mailing list