SQLite Table in Python

Hi I’m working on SQL Intermediate and was trying to get better formatted tables in Python. For example, when I run the following code it returns a list of tuples (as it should) without column names. And the results print a new line for every single item in the tuple which makes it very unreadable. Any suggestion? Thank you.

 import sqlite3
 conn = sqlite3.connect('factbook.db')
 cursor = conn.cursor()
 cursor.execute('SELECT * from facts')

One option is to use pandas, like you can see used in the solution to this guided project