chiara pascucci wrote:
> Hi,
>
> sorry for "resurrecting" this thread. I have tried doing as suggested but
> with no luck.
> I now managed to make the programme work "partially". It works as desired
> for "too high" and "right" answer input, but when the users input "too
> low" the programme clos
Hi,
sorry for "resurrecting" this thread. I have tried doing as suggested but
with no luck.
I now managed to make the programme work "partially". It works as desired
for "too high" and "right" answer input, but when the users input "too low"
the programme closes.
here is what the code looks like r
Add a new variable named "number of guesses", increase it each time
and break the loop when it reaches, for example 10. This means user
can have 10 guesses max. If they couldn't guess the number, they are
losers!
You also could do the opposite: have number of guesses=10 in the
beginning and decreas
On 01/06/18 14:00, chiara pascucci wrote:
> the user's input. The programme works fine if the it guesses the number
> right on its first try, but when the users inputs "too low" or "too high"
> an infinite loop is returned. I thinkI have done something wrong in my
> while loop and that my sentry v
Hello.
I am very new to learning Python, and I would need some help with a little
game I am trying to write. I am trying to write a game where the user is
asked to think of a number from 1 to a 100, and the computer tries to guess
it. Now, after every guess I would want the programme to ask whethe