Peter Otten <[EMAIL PROTECTED]> writes:
> > while not usrinp.lower() in "yn":
> 
> But note that 'in' performs a substring search and therefore "yn" and ""
> would be accepted as valid answers, too.

Oh right, that's a recent change to the language, I think.  OK:

  while not usrinp.lower() in list("yn"): ...
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to