3
con = sqlite3.connect("mydb")
6
SELECT = "select name_last, age from people order by age, name_last"
8
# 1. Iterate over the rows available from the cursor, unpacking the
9
# resulting sequences to yield their elements (name_last, age):
11
for (name_last, age) in cur:
12
print('%s is %d years old.' % (name_last, age))
17
print('%s is %d years old.' % (row[0], row[1]))