Distinct Customer Cities

#1 · 1 of 20Free sample
Question

Distinct Customer Cities

Use sqlite3 to connect to an in-memory database. Finally print 'Connected' so we have a stable line.
This exercise doesn't have a runnable dataset yet — submit your attempt manually and use the reference answer to self-grade.
Your answer(autosaved)
query.sql
Loading editor…
Sign up to unlock

The reference answer is one click away.

Free account unlocks the reference answer, the explanation, and the GPT tutor on every exercise in the library.

  • Reference answer + explanation revealed after each attempt
  • GPT tutor for every problem
  • Progress saved on the platform
  • 1,598 graded exercises
  • Free forever — no credit card
All exercises in Python: SQL Integration With Python