How to Solve NameError: name 'sqlite3' is not defined

Solution: Import the 'sqlite3' module

# Add the following line to the top of your code
import sqlite3

 

For more information:
Python sqlite3