list example

Paolo Pantaleo paolopantaleo at gmail.com
Sun Apr 23 08:45:49 EDT 2006


2006/4/22, Edward Elliott <nobody at 127.0.0.1>:
> No substantive problems.  The str() calls are unnecessary, print calls
> list.__str__ already.  You can replace the loop with list comprehensions or
> slices.  Same result, a bit more succinct.  See these pages for more:
>
> http://docs.python.org/lib/typesseq.html
> http://docs.python.org/tut/node7.html  (section 5.1.4)
>
>

Thnx, I didn't catch the use of colon in print...

Thanks to the other posting, but actually I want to write some code
that one can modify to his own needings

PAolo



More information about the Python-list mailing list