c = sqlite3.connect(':memory:')
c.execute(
    'CREATE TABLE distro (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT)')
for name in 'Ubuntu Fedora Puppy DSL SuSE'.split():
    c.execute('INSERT INTO distro (name) VALUES (?)', (name,))
Подстановка параметров для предложения SQLite "IN"