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 <c...@rebertia.com> wrote: > On Mon, Jan 10, 2011 at 2:44 PM, SANKAR . <shankar...@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 >
{\rtf1\ansi\ansicpg1252\deff0\deflang3081{\fonttbl{\f0\fnil\fcharset0 Courier New;}{\f1\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\f0\fs20 "FIELD_DEF","Site 01","","0","","28.89","179.00","","M1Synergy","Fixed","Xrays","6","","600","100.0","86.6","0.0","180.0","ASY","0.0","-8.0","7.9","ASY","0.0","-5.5","5.5","","","","0.0","0.0","","","","","","","","","","","","","","","","","","57636"\par "CONTROL_PT_DEF","0","2","40","28","0","1","0.000000","","6","600","86.6","2","0.0","","180.0","","ASY","0.0","-8.0","7.9","ASY","0.0","-5.5","5.5","0.0","0.0","","0.0","","0.0","","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-5.53","-6.52","-7.04","-7.50","-8.00","-8.00","-4.85","-4.66","-5.84","-5.97","-5.91","-6.43","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","0.98","5.55","6.36","6.78","6.75","6.86","7.08","7.81","7.65","7.73","6.97","7.49","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","30539"\par "CONTROL_PT_DEF","0","2","40","28","1","1","0.084884","","","","","2","","","","","ASY","0.0","-8.0","7.9","ASY","0.0","-5.5","5.5","0.0","0.0","","0.0","","0.0","","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-2.25","-5.53","-6.52","-7.04","-7.50","-8.00","-8.00","-4.85","-4.66","-5.84","-5.97","-5.91","-6.43","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","0.25","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","-1.75","0.98","5.55","6.36","6.78","6.75","6.86","7.08","7.81","7.65","7.73","6.97","7.49","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","0.75","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","61090"\par \f1\par }
-- http://mail.python.org/mailman/listinfo/python-list