How to love python list comprehensions ?

I wanted to generate a list of 640 x 480 2d points. The format of the list must be (x1, y1, x2, y2 … xn, yn).
I just came with a solution using Python list comprehensions :

Seriously, thanks python.

Facebook Twitter Delicious Reddit Digg

Leave a Reply

Your email address will not be published. Required fields are marked *