Re: String to char and decimal number conversion

2011-01-11 Thread Stefan Behnel
SANKAR ., 11.01.2011 01:00: 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) Take a look at the "csv" module in the standard library. Stefan

Re: String to char and decimal number conversion

2011-01-11 Thread Davish Bhardwaj
On Jan 11, 4:02 am, Chris Rebert wrote: > On Mon, Jan 10, 2011 at 2:44 PM, SANKAR . 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 = [ '

Re: String to char and decimal number conversion

2011-01-10 Thread SANKAR .
Thanks Alan! -Sankar On Tue, Jan 11, 2011 at 2:50 PM, Alan Meyer wrote: > On 1/10/2011 6:02 PM, Chris Rebert wrote: > >> On Mon, Jan 10, 2011 at 2:44 PM, SANKAR . wrote: >> >>> Hello There, >>> >>> >>>I am from non IT field also new to python programming.Could you >>> please help me to

Re: String to char and decimal number conversion

2011-01-10 Thread Alan Meyer
On 1/10/2011 6:02 PM, Chris Rebert wrote: On Mon, Jan 10, 2011 at 2:44 PM, SANKAR . 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"

Re: String to char and decimal number conversion

2011-01-10 Thread SANKAR .
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 Re

Re: String to char and decimal number conversion

2011-01-10 Thread Chris Rebert
On Mon, Jan 10, 2011 at 2:44 PM, SANKAR . 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

String to char and decimal number conversion

2011-01-10 Thread SANKAR .
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 (T