list comprehension

tac-tics tactics40 at
Thu Jun 29 19:50:46 CEST 2006

a wrote:
> can someone tell me how to use them
> thanks

You do a google on them:

They are the program equivalent of set builder notation in math:

{x | x in S} 

would be written 

[x for x in S]

in python.

More information about the Python-list mailing list