Re: [Tutor] Loop Issue

2014-03-14 Thread spir
On 03/13/2014 04:42 PM, Dave Angel wrote: spir Wrote in message: On 03/13/2014 12:40 AM, Danny Yoo wrote: The context is the beginning of the thread: https://mail.python.org/pipermail/tutor/2014-March/100543.html with the loop: ### while health != 0: ... ### The point, and

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

Re: [Tutor] Loop Issue

2014-03-13 Thread Dave Angel
spir Wrote in message: > On 03/13/2014 12:40 AM, Danny Yoo wrote: >> The context is the beginning of the thread: >> >> https://mail.python.org/pipermail/tutor/2014-March/100543.html >> >> with the loop: >> >> >> ### >> while health != 0: >> ... >> ### > > The point, and reason why this

Re: [Tutor] Loop Issue

2014-03-13 Thread spir
On 03/13/2014 12:40 AM, Danny Yoo wrote: The context is the beginning of the thread: https://mail.python.org/pipermail/tutor/2014-March/100543.html with the loop: ### while health != 0: ... ### The point, and reason why this loop was (potentially) infinite, is that the condition

Re: [Tutor] Loop Issue

2014-03-12 Thread Danny Yoo
The context is the beginning of the thread: https://mail.python.org/pipermail/tutor/2014-March/100543.html with the loop: ### while health != 0: ... ### ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: htt

Re: [Tutor] Loop Issue

2014-03-12 Thread Mark Lawrence
On 12/03/2014 23:18, Danny Yoo wrote: This particular loop condition looks very suspicious. I would look at it more closely. When is it false? When is it true? Context please Danny, we're not all mind readers and we don't all have photographic memories :) -- My fellow Pythonistas, ask not

Re: [Tutor] Loop Issue

2014-03-12 Thread Danny Yoo
This particular loop condition looks very suspicious. I would look at it more closely. When is it false? When is it true? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tu

Re: [Tutor] Loop Issue

2014-03-12 Thread Alan Gauld
On 11/03/14 13:53, Yanni Phone wrote: health = 10 trolls = 0 damage = 3 while health != 0: trolls += 1 health -= damage This seems simple enough. (This is an example of a non-terminating loop, by the way, so it is not suppose to work correctly.) My problem is that when I enter this

[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