Re: [Tutor] Simple guessing game - need help with the math

2014-08-15 Thread Alan Gauld
On 15/08/14 17:49, Derek Jenkins wrote: I am a newbie (please correct me if I am wrong), but I happen to think that it would be best to suggest that your input be in the same case as that of your variables. In other words, it appears that you are suggesting the user make an input choice of H, L,

Re: [Tutor] Simple guessing game - need help with the math

2014-08-15 Thread Derek Jenkins
I am a newbie (please correct me if I am wrong), but I happen to think that it would be best to suggest that your input be in the same case as that of your variables. In other words, it appears that you are suggesting the user make an input choice of H, L, or C while the program appears to want to

Re: [Tutor] Simple guessing game - need help with the math

2014-08-15 Thread Sibylle Koczian
Am 13.08.2014 01:25, schrieb Greg Markham: while answer == "h" or "l" or "c": print ("My guess is: ", guess, "\n") answer = input("Is it (H)igher? (L)ower? Or am I (C)orrect? ") answer = answer.lower() if answer == "h": guess = round(int(guess + (change/2)))

Re: [Tutor] Simple guessing game - need help with the math

2014-08-13 Thread Dave Angel
Greg Markham Wrote in message: Please post as text. Because you used html, I cannot quote your message, or indeed even see it at all while replying. There are other problems frequently triggered by html, but on to my response. You don't specify the python version you're writing for. I have

[Tutor] Simple guessing game - need help with the math

2014-08-13 Thread Greg Markham
Hello again, I'm working on one of the more advanced (at this stage of my learning process), albeit optional, assignments. The objective is to write a program that tries to guess your number from 1 to 100. After each guess, you tell it if it's (h)igher, (l)ower or (c)orrect, and eventually it'll