> 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. Greg