ternary operator

Andrew Koenig ark at research.att.com
Fri Feb 7 18:35:08 CET 2003


Wojtek> # the other way ;)
Wojtek> print len(filter(lambda z: z!=y, list(x)[:len(n)]))

There are, of course, lots of ways of writing equivalent programs that
are structured completely differently; but those programs don't answer
the question that I'm asking.

-- 
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark




More information about the Python-list mailing list