Answer the question
In order to leave comments, you need to log in
Why does SQLLite return a value with quotes?
Good day I use SQLLite, I request data like this:
connection = sqlite3.connect(DB_NAME)
curs = connection.cursor()
curs.execute("SELECT ticker FROM tokens")
symbol_db = curs.fetchall()
print(symbol_db[2])
('Alex',)('Peter',)('Mina',)but why does he send me the value inside (',)
Answer the question
In order to leave comments, you need to log in
Instead use this:print(symbol_db[2])
for s in symbol_db:
print(s[2])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question