$10K coding deathmatch

Hill, Greg grhill at corp.untd.com
Mon Nov 6 14:00:40 MST 2006

> Let me be radical and propose:
> if value:
>     print 'match'
> else:
>     print 'not a match'

print ($value) ? 'match' : 'not a match';

Yay for tertiary operators.  Of course, Python may or may not have
those, I wouldn't know.  I'm a Perl bigot.


More information about the PLUG mailing list