[Tutor] Jumble
Adam
adam.jtm30 at gmail.com
Thu Jan 19 01:35:55 CET 2006
On 19/01/06, ryan luna <ryan_gm at sbcglobal.net> 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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20060119/1cd72744/attachment.html
More information about the Tutor
mailing list