Files
agila-learning-examples/en/expanded-28-1/lesson-2/main.py
T

7 lines
227 B
Python

import sqlite3
db=sqlite3.connect(":memory:")
db.execute("create table notes(value text)")
value="A student's note"
db.execute("insert into notes values (?)",(value,))
print(db.execute("select value from notes").fetchone()[0])