With Sqlite, a \"select..from\" command returns the results \"output\", which prints (in python):
>>print output
[(12.2817, 12.2817), (0, 0), (8.52, 8.
List comprehension approach that works with Iterable types and is faster than other methods shown here.
flattened = [item for sublist in l for item in sublist]
l is the list to flatten (called output in the OP's case)
l = list(zip(range(99), range(99))) # list of tuples to flatten
[item for sublist in l for item in sublist]
timeit result = 7.67 µs ± 129 ns per loop
flattened = []
list(flattened.extend(item) for item in l)
timeit result = 11 µs ± 433 ns per loop
list(sum(l, ()))
timeit result = 24.2 µs ± 269 ns per loop