How to use SQL database with Python

How do I connect a SQL database to my Python repl and use it?


Hi MiloCat! You can use Replits built in PostgreSQL database! Click in the tab in the tools area and its an easy setup!

1 Like

But it costs so many cycles :skull:

1 Like

Use SQlite, its free :slight_smile:

If you’re interested, check out this freeCodeCamp tutorial I wrote: How to Use SQLite with Python


I was suggesting Replit’s option first. If you are looking for something to use for free check out the reply above!

1 Like

can you explain a little more? how? where?

i click the postgresql icon on the tools bar, and … nothing happens