Answer the question
In order to leave comments, you need to log in
How to remove quotes and commas from SQLite response?
Good afternoon!
How to remove quotes and commas from SELECT response in Python?
I do everything as in the documentation.
https://docs.python.org/3.4/library/sqlite3.html
I get the answer:
(35.14,)
How can I remove this comma?
Thank you!
PS I can't paste the code from my phone))
Answer the question
In order to leave comments, you need to log in
c.select('...')
row = c.fetchone() # (35.14,)
rowitem = row[0] # 35.14
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question