Answer the question
In order to leave comments, you need to log in
Why do I get strange code when querying sqlite3?
Hello!
Such a problem. I make a request to the database and get a strange response. This is how I make the call:
db = sqlite3.connect(config.database_name)
cursor = db.cursor()
question = cursor.execute('SELECT question FROM answers')
answer = cursor.execute('SELECT right_answer FROM answers')
db.commit()
<sqlite3.Cursor object at 0x03B9E7A0>
Answer the question
In order to leave comments, you need to log in
The program is unfinished. Learn the basics. this is not a response from the database that the program processes, but just a temporary work object. After sending each request, you need to read the response using just this cursor.
https://python-scripts.com/database
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question