New course! Every coder should learn Generative AI!
Try a free lesson+ 7
Python has an in-built module for database. It's called sqlite3, well enough for most of your tasks.
Here's an example for the same.
https://code.sololearn.com/cxALram56nuM/?ref=app