Re: [BangPypers] Fwd: Please help with this code

2018-08-19 Thread Prince Sharma
Hey, You need to use std.append(STUDENT(roll,name,present,absent)) Since you have just initialized the list named std, there is no index available in the begining. Thanks, Prince On Sun, 19 Aug 2018, 16:00 Sayantan, wrote: > Hello Ankur, > > A few things before we take the program in contex

Re: [BangPypers] HTML to doc conversion

2015-09-30 Thread Prince Sharma
Tried going through this? http://stackoverflow.com/questions/25290041/converting-html-to-doc-with-look-and-feel Thanks, Prince On Wed, Sep 30, 2015 at 1:56 PM, Sandeep wrote: > Hello Bangpypers, > > I am working on a project where in I need to convert a HTML page which has > the formatting inf

Re: [BangPypers] Newspaper in Python

2015-04-24 Thread Prince Sharma
No problem, however i forgot to close the file handle. You can start solving problem from there ;) Cheers, Prince On Fri, Apr 24, 2015 at 2:05 PM, Nimish Dalal wrote: > On Fri, Apr 24, 2015 at 1:44 PM, Prince Sharma > wrote: > > > As mentioned you can create a list

Re: [BangPypers] Newspaper in Python

2015-04-24 Thread Prince Sharma
/scroll.in/. <http://scroll.in/>.. http://scroll.in/. <http://scroll.in/>.. On Apr 24, 2015 1:20 PM, "Nimish Dalal" wrote: > On Fri, Apr 24, 2015 at 12:29 PM, Prince Sharma > wrote: > > > By export you mean you want to create a text file for every URL? >

Re: [BangPypers] Newspaper in Python

2015-04-24 Thread Prince Sharma
By export you mean you want to create a text file for every URL? Hi, I am new to python and need help with newspaper. I am using this module as I find it easier to extract the urls from the website. Here's my code: import newspaper Sc_paper = newspaper.build(u'http://scroll.in/') for article in S

Re: [BangPypers] Need help with adding a character at the end of the line in a file in linux.

2015-04-17 Thread Prince Sharma
For that you should compile the regex with infrastructure and platform together. And have that check before checks for infrastructure and platform separately. On Apr 17, 2015 12:10 PM, "arvind ks" wrote: > Hi Kishore, > Thanks for the reply. I've tried adding some additional checks, but unable >