Вставить данные в базу данных SQLite в Python
import sqlite3
# it will create a databse with name sqlite.db
connection= sqlite3.connect('sqlite.db')
cursor= connection.cursor()
table_query = '''CREATE TABLE Student
(Name text, Course text, Age real)'''
cursor.execute(table_query)
# you need to commit changes as well
connection.commit()
# you also need to close the connection
connection.close()
Pythonist