I am creating an application that connects to the Sqlite db, search and return the column of the table in question, the problem is that the result returned unformatted looks like this: ( u'Field 1, Field 2' )
, to print I tried to use for
within for
and printing each field with a print ( '{0} {1} ... '.format ( ... ) ) ,
and a end = '\n'
at the end to be well formatted, but Pyhton does not accept and needs to be very dynamic because the number of items can vary with each db created (the user chooses the fields and the types), I researched a little but I did not find a good way to print this data, I would be grateful if they can send references or explanations.
print ( '{0} {1} ... '.format ( ... ), end = '\n' )