String to char and decimal number conversion
SANKAR .
shankarphy at gmail.com
Mon Jan 10 19:00:10 EST 2011
Hi Chris ,
Thanks for your response.
I am reading a Test.txt (see atatchment) file using following code to get
the T2:
F =open('C:\Test.txt','r')
T1 = F.readlines()
for i in range(len(T1)):
T2 = T1[i].split(',')
print(T2)
Regards
Sankar
On Tue, Jan 11, 2011 at 10:02 AM, Chris Rebert <clp2 at rebertia.com> wrote:
> On Mon, Jan 10, 2011 at 2:44 PM, SANKAR . <shankarphy at gmail.com> wrote:
> > Hello There,
> >
> > I am from non IT field also new to python programming.Could you
> > please help me to solve the following problem?
> >
> > I have a list T1 with following format:
> >
> > T1 = [ ' "Field" ' , ' "12.5" ', ' "2.5" ']
> >
> > How do get the list elements without double quote in my output (T2).
> >
> > T2 =[ ' Field ' , ' 12.5 ', ' 2.5 ']
>
> How are you obtaining T1 in the first place?
>
> Cheers,
> Chris
> --
> http://blog.rebertia.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110111/2ee7a391/attachment-0001.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Test.txt
URL: <http://mail.python.org/pipermail/python-list/attachments/20110111/2ee7a391/attachment-0001.txt>
More information about the Python-list
mailing list