1import sqlite3
2import string
3
4def char_generator():
5    for c in string.ascii_lowercase:
6        yield (c,)
7
8con = sqlite3.connect(":memory:")
9cur = con.cursor()
10cur.execute("create table characters(c)")
11
12cur.executemany("insert into characters(c) values (?)", char_generator())
13
14cur.execute("select c from characters")
15print(cur.fetchall())
16
17con.close()
18