[Tutor] correcting an Active State Recipe for conversion to ordinal
kent37 at tds.net
Thu Feb 4 19:12:25 CET 2010
On Thu, Feb 4, 2010 at 1:09 PM, Kent Johnson <kent37 at tds.net> wrote:
> On Thu, Feb 4, 2010 at 12:11 PM, Serdar Tumgoren <zstumgoren at gmail.com> wrote:
>> Here's the link to the recipe:
> 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.
More information about the Tutor