[ad_1]
This is one way to do it:
import re
x = "'('2275.1', '1950.4')'"
y = re.findall(r'\d+\.\d', x)
for i in y:
print i
Output:
2275.1
1950.4
[ad_2]
solved Removing parentheses and comma
[ad_1]
This is one way to do it:
import re
x = "'('2275.1', '1950.4')'"
y = re.findall(r'\d+\.\d', x)
for i in y:
print i
Output:
2275.1
1950.4
[ad_2]
solved Removing parentheses and comma