The State of Python
Guido van Rossum
guido at beopen.com
Sat Jul 29 11:08:32 EDT 2000
Vespe Savikko <vespe at cs.tut.fi> writes:
> http://www.pythonlabs.com/talks.html
>
> The first example on slide 14, List Comprehensions:
>
> [(x, x**2) for x in range(5)]
> -> [(0,0), (1,1), (4,4), (9,9), (16,16)]
>
> My intuition says the result should be:
>
> -> [(0,0) ,(1,1), (2,4), (3,9), (4,16)]
Oops. That's definitely a typo. I'll see what I can do about fixing
this!
--Guido van Rossum (home page: http://www.pythonlabs.com/~guido/)
More information about the Python-list
mailing list