On Sat, Apr 5, 2008 at 3:07 PM, John M. Dlugosz
<[EMAIL PROTECTED]> wrote:
> What is a "list comprehension"?  I've seen that term bantered around here.
snip

It is like a list, for loop, and grep all rolled up into one.  Here is
what it looks like in Python:

S = [2*x for x in xrange(100) if x**2 > 3]


-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

Reply via email to