Re: [Tutor] self keyword in recursive function

2014-05-31 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 marc.tompk...@gmail.com wrote: On Fri, May 30, 2014 at 10:16 PM, Ritwik Raghav ritwikragha...@gmail.com wrote: It has again given some error I do

Re: [Tutor] self keyword in recursive function

2014-05-31 Thread Marc Tompkins
On Fri, May 30, 2014 at 11:06 PM, Ritwik Raghav ritwikragha...@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

Re: [Tutor] self keyword in recursive function

2014-05-31 Thread Alan Gauld
On Fri, May 30, 2014 at 10:16 PM, Ritwik Raghav ritwikragha...@gmail.com mailto:ritwikragha...@gmail.com wrote: and the error is: Correct Return Value: No Answer check result: Result must be not null. Execution Time: 0.017s Peak memory used: 24.551MB abnormal

Re: [Tutor] Library for .ppt to .txt conversion

2014-05-31 Thread Aaron Misquith
The only thing i want from the ppt's is text and ignoring all graphical representations. I need the text to perform various nltk operations. On Fri, May 30, 2014 at 11:54 PM, Alan Gauld alan.ga...@btinternet.com wrote: On 30/05/14 10:41, Aaron Misquith wrote: Like pypdf is used to convert

Re: [Tutor] HTML Parsing

2014-05-31 Thread Mitesh H. Budhabhatti
I see others have answered the programming question, but there's a separate one. What is the license of the particular ste, yahoo in this case. For an occasional scrape, nobody's likely to mind. But if you plan any volume, using the official api is more polite. Thanks for the reply.

Re: [Tutor] Library for .ppt to .txt conversion

2014-05-31 Thread Dave Angel
Aaron Misquith aaronmisqu...@gmail.com Wrote in message: The only thing i want from the ppt's is text and ignoring all graphical representations. I need the text to perform various nltk operations. On Fri, May 30, 2014 at 11:54 PM, Alan Gauld alan.ga...@btinternet.com wrote: Bearing in

Re: [Tutor] Question about scraping

2014-05-31 Thread Joel Goldstick
On May 30, 2014 10:12 PM, Matthew Ngaha chigga...@gmail.com wrote: Thanks for the response Alan. I forgot to reply to tutor on my 2nd comment. Just incase someone might want to see it, here it is: Okay I think learning how to scrap (library or framework) is not worth the trouble. Especially

[Tutor] Break outside the loop error (line 23)

2014-05-31 Thread Sasi -
Hi, i tried to make a code to execute the functions that i described below. However i got a break outside the loop error and i have tried to tab and all that but i still get the same error for line 23. I'm using python 2.7 Please help me. I'm completely new to coding (just started last

Re: [Tutor] Break outside the loop error (line 23)

2014-05-31 Thread Wolfgang Maier
On 31.05.2014 11:23, Sasi - wrote: Hi, i tried to make a code to execute the functions that i described below. However i got a break outside the loop error and i have tried to tab and all that but i still get the same error for line 23. I'm using python 2.7 Hi, as a general rule, copy paste

Re: [Tutor] Break outside the loop error (line 23)

2014-05-31 Thread Alan Gauld
On 31/05/14 10:23, Sasi - wrote: Hi, i tried to make a code to execute the functions that i described below. However i got a break outside the loop error Always post the full error message it usually contains lots of useful detail. ## Created the lists for brain and plasma before searching

Re: [Tutor] self keyword in recursive function

2014-05-31 Thread Ritwik Raghav
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