In Python when i'm making a query to select everything from set row in sqlite, It works fine but the string that i append into a array look rather odd.
This is my array when I append the same data into my array but from at text file:
ORC
TROLL
WORGEN
DWARF
but if I try to do the same from the data i appended from my sqlite table i get this:
('ORC',)
('TROLL',)
('WORGEN',)
('DWARF',)
races = []
races = dbaction.execute("SELECT races FROM racetable;").fetchall()
for item in racetable:
print(item)
How do I turn the print from sqlite into looking the same as the one from the text file? the problem is probably pretty simple, but i'm missing the keywords to google the answer i believe, because most posts are talking about unicode and utf-8