Thank you Danny, Alan, @ Danny
I added 'str(formt(line1[0]))' .... will this do ? @ Alan I did just that .... nextRow[0] Triple quotes ...... there is some part of code in multi-line .... so... me being just lazyyy ... copy pasted / edited ... and left what is working ..... just my excuse :P On 11 May 2016 at 03:57, Alan Gauld via Tutor <tutor@python.org> wrote: > On 10/05/16 08:33, nitin chandra wrote: > >> here is the result. >> >> 1 >> ('Supervisor',) >> <tr> >> <td>1</td> >> <td>Vinayak</td> >> <td>Salunke</td> >> <td>1</td> >> >> Now I need to remove the braces and quotes .. :) > > No you don't. Those are just part of the string representation > that Python uses when printing a string inside a tuple. > > If you print nextRow[0] instead of nextRow you > will get the bare string. > > BTW Why are you using triple quotes? You only need them if > your string wraps over multiple lines. Single quotes (" or ') > will be fine for your purposes and are easier to type... > > -- > Alan G > Author of the Learn to Program web site > http://www.alan-g.me.uk/ > http://www.amazon.com/author/alan_gauld > Follow my photo-blog on Flickr at: > http://www.flickr.com/photos/alangauldphotos > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor