I have a python list with strings in this format:
A1 = [\' \"29.0\" \',\' \"65.2\" \',\' \"75.2\" \']
How do I convert those strings into d
If you want the result as the nearest binary floating point number use float:
float
result = [float(x.strip(' "')) for x in A1]
If you want the result stored exactly use Decimal instead of float:
from decimal import Decimal result = [Decimal(x.strip(' "')) for x in A1]