A
A
alekseyizmaylov2022-03-26 08:09:16
Python
alekseyizmaylov, 2022-03-26 08:09:16

How to retrieve data from a database using Python?

There is a console application written in Python, the requested values ​​​​from the database are displayed, for example, the number of records, etc. - values ​​are displayed in brackets, how to fix it? Parentheses are not needed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2022-03-26
@alekseyizmaylov

fetchall() returns a list of tuples , one of the basic data structures in python. Read what it is, and then take on the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question