How are you obtaining T1 in the first place?
Cheers,
Chris
--
http://blog.rebertia.com
This will do it:
------------------------------------------------
T1 = [ ' "Field" ' , ' "12.5" ', ' "2.5" ']
T2 = []
for t in T1:
T2.append(t.replace('"', ''))
------------------------------------------------
The "replace" function acts on each element in T1, replacing every
double quote with nothing. We then append that to the new list T2.
Alan
You can also do it like :
T1 = [ ' "Field" ' , ' "12.5" ', ' "2.5" ']
T2 = [t.replace('"', '') for t in T1]
This seems to me a more better and fast code ;)
Davish
Take a look at the "csv" module in the standard library.
Stefan