better output

master
Dr. Sascha Woitschetzki 2024-03-11 08:10:53 +07:00
parent 76e9ea6bd4
commit a0f114ac0e
1 changed files with 3 additions and 2 deletions

@ -1,7 +1,8 @@
from cs50 import sql
db = sql.SQL("sqlite:///shows.db")
title = "The Office"
title = input("Title?: ")
rows = db.execute("SELECT * FROM shows WHERE title = ? LIMIT 10", title)
print(rows)
for row in rows:
print(row)