[Tutor] Re: Tutor digest, Vol 1 #281 - 7 msgs

Moshe Zadka Moshe Zadka <mzadka@geocities.com>
Wed, 5 Apr 2000 07:48:35 +0200 (IST)


On Tue, 4 Apr 2000, Daniel Yoo wrote:

> 	if goodstats == 'yes' or goodstats == 'y'

Or, if you want to write more idiomatic Python,

if goodstats in ('yes', 'y'):

one-less-place-to-make-a-typo-is-one-less-typo-ly y'rs. Z.

--
Moshe Zadka <mzadka@geocities.com>. 
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com