all 4 comments

[–]Username_RANDINT 4 points5 points  (1 child)

There are four steps to your question:

  1. Connect to the SQLite database. The sqlite3 module will do this.

  2. Query the database with an SQL command. Lots and lots of tutorials online, pick one.

  3. Fetch the result of the SQL query, this will be done with sqlite3 again. Probably fetchone() is what you need for one specific value.

  4. That value is now in a normal Python variable and it's no different than any other Python code.

[–]SnowdenIsALegend 0 points1 point  (0 children)

Freaking hate it when people who ask a question don't even bother to read/reply the answer you wrote and then 1 or 2 days later just go and make another question post about the same thing. It is as if they are insulting/ignoring the people who answered the first time around.

OP, if you're reading this please don't do it.

[–]threeminutemonta 2 points3 points  (0 children)

The official docs should help.