Apr-07-2022, 12:54 PM
(Apr-07-2022, 12:31 PM)buran Wrote: the query result is consists of one-element tuples. You can always access the first element in each tuple bydgname[0]
, or create a list with all first elements
spam=(('DATA',),('RECO',)) eggs = next(zip(*spam)) # eggs = list(zip(*spam))[0] print(eggs) print('\n'.join(eggs))
Thanks a lot, I'm so new to this :)