Re: [Tutor] Guessing a number with limited no. of tries game gone wrong.

2006-03-28 Thread Victor Bouffier
Hi Ros, Look what happens when the user tried for more than 5 times: if tries > 5: break This just takes you out of the loop, but it does not handle the issue that the user did not guess correctly. The next statement will be to print the congratulations message. You should instead t

[Tutor] Guessing a number with limited no. of tries game gone wrong.

2006-03-28 Thread Ros Daniel
I am a newbie at Python. Just bought Python Programming 2nd ed. by Michael Dawson. While I understand the concepts as the book is going through the code, and I am able get the same results, when it comes to applying what I've learned to the exercises at the end of each chapter, I seem to be stu