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,
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
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)))
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
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