# DO NOT COPY OR SHARE - A3Tech / NCTI course material for enrolled students only.
# BUG HUNT - this program crashes.
# It should list every product under EC$5.
# 1. Run it.  2. Read the LAST line of the error.  3. Fix the bug.
import shop_db

shop_db.setup()
cheap = shop_db.query("SELECT name, prise FROM products WHERE price < 5")
for p in cheap:
    print(p["name"], p["price"])
