"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> while (hint != 'n') or (hint != 'y'):
>     hint = raw_input("Please specify a valid choice: ")
> 
> ---------------------------------------------
> 
> so everytime I run the program, and enter my choice as y or n, I'm
> told to 'Please Specify a valid Choice Again' and can't get out of the
> loop.

Suppose your hint is 'y'.  Ask yourself these two questions:

  1. Is (hint != 'n') true?
  2. Is (hint != 'y') true?

Now ask yourself what the condition in your while loop says.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to