Usefull python tutorial

Chris Rebert clp2 at rebertia.com
Wed Aug 26 14:11:25 CEST 2009


On Wed, Aug 26, 2009 at 4:44 AM, gentlestone<tibor.beck at hotmail.com> wrote:
> Can somebody give me an advise where I can found a really good online
> tutorial? All I found are useless. For example no tutorial I found
> explains this piece of code:
>
>    someList = [element for element in otherList if element is not
> None]

See http://docs.python.org/tutorial/datastructures.html#list-comprehensions

> or this example:
>
>    a = a or []

That's a bit more obscure, and I'm not entirely surprised it's not in
a tutorial:
http://docs.python.org/reference/expressions.html#boolean-operations


You might want to try the official tutorial (unless it's the one
you're complaining about):
http://docs.python.org/tutorial/index.html

I've also heard good things about Dive Into Python:
http://diveintopython.org/

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list