[Tutor] self keyword in recursive function

Ritwik Raghav ritwikraghav14 at gmail.com
Sun Jun 1 06:27:37 CEST 2014


That's all the code I'm writing. As for the reference to line 182, I have
no idea since my code doesn't have line 182.

Also, as Peter wrote:
"The "topcoder" site is probably infested with the world view of Java where
every function is a method inside a class."


Topcoder seems too much in love with Java style of coding and Python seems
much better. I'm switching to some other platform.

Thank You all for the quick response.


On Sat, May 31, 2014 at 11:53 AM, Marc Tompkins <marc.tompkins at gmail.com>
wrote:

> On Fri, May 30, 2014 at 11:06 PM, Ritwik Raghav <ritwikraghav14 at gmail.com>
> wrote:
>
>> That's all the code I'm writing.
>>
>
> That can't be true - the 11 lines of code you posted doesn't include
> anything that would give you "Correct Return Value: No", let alone any
> reference to PersistentNumber.  From the error message, it would appear
> that you've written (at least) 182 lines, and that the problem is on line
> 182 - but that's not what you're showing us.
>
>
>
>> The complete problem statement is:
>> http://pastebin.com/E970qYXk
>>
>
> Yes, but that's not _your_ code, so it tells us nothing about your error.
>
>
>


-- 
Ritwik Raghav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140601/6145b859/attachment-0001.html>


More information about the Tutor mailing list