I have a list of strings but some of the strings have one or two tuples in them such as
["('753.00', '97.00', '863.74', '179.00'), ('123.00', '37.00', '813.74', '139.00')", "('829.37', '381.62', '1022.00', '491.63')"]
I need this to be a list of single tuples instead like
[('829.37', '381.62', '1022.00', '491.63'), ('123.00', '37.00', '813.74', '139.00'), ('753.00', '97.00', '863.74', '179.00')]
Problem is that I have not been able to separate the following because it is enclosed in the same quote.
"('753.00', '97.00', '863.74', '179.00'), ('123.00', '37.00', '813.74', '139.00')" into ('753.00', '97.00', '863.74', '179.00'), ('123.00', '37.00', '813.74', '139.00')
I tried list(map(ast.literal_eval, lst))
but that does work as from a previous post that someone marked duplicate.