Usefull python tutorial

Simon Brunning simon at brunningonline.net
Wed Aug 26 08:17:57 EDT 2009


2009/8/26 gentlestone <tibor.beck at hotmail.com>:
> Can somebody give me an advise where I can found a really good online
> tutorial? All I found are useless.

<http://docs.python.org/tutorial/> is really good, as I remember, as
is <http://diveintopython.org/>.

 For example no tutorial I found
> explains this piece of code:
>
>    someList = [element for element in otherList if element is not
> None]

<http://docs.python.org/tutorial/datastructures.html#list-comprehensions>
or <http://diveintopython.org/native_data_types/mapping_lists.html>

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

Strangely not in the tutorial:
<http://docs.python.org/library/stdtypes.html#truth-value-testing>.

-- 
Cheers,
Simon B.



More information about the Python-list mailing list