[Solved] Removing parentheses and comma


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

solved Removing parentheses and comma