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
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
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
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
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
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
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
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
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