On 19/01/06, ryan luna <[EMAIL PROTECTED]> wrote:
Ok so what i have to do is make it so when a player
ask for a hint the program display a hint, heres my
loop, not whole script.

guess = raw_input("\nYour guess: ")
guess = guess.lower()
while (guess != correct) and (guess != ""):
    print "Sorry, that's not it."
    print "If you need a hint enter help"
    if guess == hint:

raw_input converts any input to a string so if guess == "hint": should work or making the variable hint = "hint"


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to