Hey, I'm new to python so don't judge.
cr2001 at hotmail.co.nz
Tue Jan 3 21:47:43 EST 2017
On Wednesday, January 4, 2017 at 3:35:53 PM UTC+13, Erik wrote:
> On 04/01/17 02:24, Callum Robinson wrote:
> > On Wednesday, January 4, 2017 at 3:05:48 PM UTC+13, MRAB wrote:
> >> What values can 'is_same' return?
> >> Which of those values are you checking for in the loop?
> > I'm sorry but i do not completely understand what you are stating
> You need to think about the specific things (their type, their exact
> values) that your functions might return. Printing some trace output is
> a classic way of debugging your program. If, after this line:
> >>>> higher_or_lower = is_same(computer_number, guess)
> ... you added:
> print (higher_or_lower)
> ... what values do you then see being output? How will those values be
> processed by the conditions you see that work on the "higher_or_lower"
I did it and this is what it states when i run it
I have thought of a number between 1 and 100.
Can you guess it?
Sorry , you are too high. Try again.
Does this mean the number i entered is to low but the code is still stating it is to high?
More information about the Python-list