[docs] Tutorial
Sandro Tosi
sandro.tosi at gmail.com
Tue May 31 19:23:27 CEST 2011
Hello John,
On Thu, May 26, 2011 at 21:20, Ortmann, John E <jortmann at tulane.edu> wrote:
> Hello,
>
> I have been going through one of the tutorials on the Python website and I
> have come across a code that does not seem to generate any output when I use
> it in my Python interpreter. The second example under "4.2 for Statements"
> on the page http://docs.python.org/tutorial/controlflow.html does not return
> anything.
just to be sure I understand your request, after the for loop:
>>> for x in a[:]:
... if len(x) > 6: a.insert(0, x)
...
did you also entered 'a' and pressed ENTER:
>>> a
['defenestrate', 'cat', 'window', 'defenestrate']
?
Regards,
--
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi
More information about the docs
mailing list