diff options
Diffstat (limited to 'Doc/lib/sqlite3/execsql_fetchonerow.py')
-rw-r--r-- | Doc/lib/sqlite3/execsql_fetchonerow.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/lib/sqlite3/execsql_fetchonerow.py b/Doc/lib/sqlite3/execsql_fetchonerow.py index 8044ecf..078873b 100644 --- a/Doc/lib/sqlite3/execsql_fetchonerow.py +++ b/Doc/lib/sqlite3/execsql_fetchonerow.py @@ -9,9 +9,9 @@ SELECT = "select name_last, age from people order by age, name_last" # resulting sequences to yield their elements (name_last, age): cur.execute(SELECT) for (name_last, age) in cur: - print '%s is %d years old.' % (name_last, age) + print('%s is %d years old.' % (name_last, age)) # 2. Equivalently: cur.execute(SELECT) for row in cur: - print '%s is %d years old.' % (row[0], row[1]) + print('%s is %d years old.' % (row[0], row[1])) |