Re: [Tutor] self keyword in recursive function

2014-05-31 Thread Ritwik Raghav
; 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 wrote: > On Fri, May 30, 2014 at 11:06 PM, Ritwik Raghav > wrote: >

Re: [Tutor] self keyword in recursive function

2014-05-30 Thread Ritwik Raghav
That's all the code I'm writing. The complete problem statement is: http://pastebin.com/E970qYXk On Sat, May 31, 2014 at 11:25 AM, Marc Tompkins wrote: > On Fri, May 30, 2014 at 10:16 PM, Ritwik Raghav > wrote: > > >> It has again given some error I do not unde

Re: [Tutor] self keyword in recursive function

2014-05-30 Thread Ritwik Raghav
Peter Otten wrote: >Ritwik Raghav wrote: > >> I joined the topcoder community tomorrow and tried solving the >> PersistentNumber problem: >> "Given a number x, we can define p(x) as the product of the digits of x. >> We can then form a sequence x, p(x), p(p(x))

Re: [Tutor] self keyword in recursive function

2014-05-30 Thread Ritwik Raghav
Alan Gauld wrote: >On 30/05/14 14:14, Ritwik Raghav wrote: >> I joined the topcoder community tomorrow and tried solving the >> PersistentNumber problem: > >Time travel! I love it already... :-) > >> 8*1 = 8. Thus, the persistence of 99 is 2. You will be given

[Tutor] self keyword in recursive function

2014-05-30 Thread Ritwik Raghav
ied format. Or help me understand how to recreate the function as specified. -- Ritwik Raghav ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor