I have a list of tuples in this form (generated by a DB query):
[(280.73,), (281.359,), (280.630,)]
I would like to remove the () and commas to achieve something like this, making it more compatible to form into a JSON.
[280.73,281.359,280.630]
What is the easiest way to do this?
The easiest is probably through list comprehension: