importsqlite3con=sqlite3.connect("mydb")con.row_factory=sqlite3.Rowcur=con.cursor()cur.execute("select name_last, age from people")forrowincur:assertrow[0]==row["name_last"]assertrow["name_last"]==row["nAmE_lAsT"]assertrow[1]==row["age"]assertrow[1]==row["AgE"]