Re: [Tutor] Loop Issue

2014-03-13 Thread Yanni Phone
OK, thank you. I knew the loop was infinite but usuyally when I did infinite loops before, I had them print out a message, so it was obvious. Thanks for the clarification. On Thu, Mar 13, 2014 at 9:38 AM, spir wrote: > On 03/13/2014 12:40 AM, Danny Yoo wrote: > >> The context is the beginning o

[Tutor] Loop Issue

2014-03-12 Thread Yanni Phone
Hello all, I was following along in a book called 'Python Programming for the Absolute Beginner' by Michael Dawson and I ran into an odd problem with a loop. Dawson has the following code in his book: health = 10 trolls = 0 damage = 3 while health != 0: trolls += 1 health -= damage This s