On Thu, Feb 4, 2010 at 1:09 PM, Kent Johnson <ken...@tds.net> wrote: > On Thu, Feb 4, 2010 at 12:11 PM, Serdar Tumgoren <zstumgo...@gmail.com> wrote:
>> Here's the link to the recipe: >> >> http://code.activestate.com/recipes/576888/ > > Perhaps the code on activestate is not a correct copy of what you are > running? The conditional at line 23 extends all the way to line 35 - > the end of the function - so if value % 100/10 == 1 no more code is > executed and None is returned. If I delete line 33 and move lines 34 and 35 left to match line 23 then the tests pass. Kent _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor