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.
In Python 3 you can use the * syntax to flatten a list of iterables:
*
>>> t = [ (1,2), (3,4), (5,6) ] >>> t [(1, 2), (3, 4), (5, 6)] >>> import itertools >>> list(itertools.chain(*t)) [1, 2, 3, 4, 5, 6] >>>