En Wed, 14 Mar 2007 15:34:20 -0300, Fabio FZero <[EMAIL PROTECTED]> escribió:
> Why don't you try this instead: > > hint = raw_input("\nAre you stuck? y/n: ") > hint = hint.lower() > > while not hint in 'yn': > hint = raw_input("Please specify a valid choice: ") Dangerous: what if the user types 'yn'? `hint in list('yn')` may be better, if you don't like the previous answers. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list