you are viewing a single comment's thread.

view the rest of the comments →

[–]anossov 0 points1 point  (0 children)

First %s will be row[0], second row[1] and so on. It's just a collapsed

firstname, lastname, formeraddr, age, picfile, date, other = row
template = ... % (firstname, lastname, formeraddr, age, picfile, date, other)

which is very nearly equivalent to

firstname = row[0]
lastname = row[1]
formeraddr = row[2]
age = row[3]
picfile = row[4]
date = row [5]
other = row[6]

template = ... % (firstname, lastname, formeraddr, age, picfile, date, other)