I have some text file like this, with several 5000 lines:
5.6 4.5 6.8 \"6.5\" (new line) 5.4 8.3 1.2 \"9.3\" (new line)
so the last t
I think the easiest and most efficient thing to do would be to slice it!
From your code:
d = l[3] returns "6.5"
so you simply add another statement:
d = d[1:-1]
now it will return 6.5 without the leading and end double quotes.
viola! :)