Create a database

  1. Import the sqlite module

    1import sqlite3
    
  2. Create a database

    4conn = sqlite3.connect("library.db")
    5
    6cursor = conn.cursor()
    
  3. Create a table

     9cursor.execute("""CREATE TABLE books
    10                  (title text, language text, author text, license text,
    11                          release_date text)
    12               """)