[Tutor] Help on Python Looping Please
Walter Prins
wprins at gmail.com
Thu Feb 24 16:08:05 CET 2011
On 24 February 2011 14:52, pyhx0r <pyhx0r at gmail.com> wrote:
> *Why do in my code, it loops to all values and not in Mark Pilgrim’s code?
> *
>
>
Because in Mark's code the loop is terminated by the return statement
(contained in the utility function approximate_size().) In your code you've
removed the entire function including the return statement, consequently the
loop runs to completion.
Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110224/dbf7dcdb/attachment.html>
More information about the Tutor
mailing list