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.
By far the fastest (and shortest) solution posted:
list(sum(output, ()))
About 50% faster than the itertools solution, and about 70% faster than the map solution.
itertools
map