What does zip mean?

satishmlmlml at gmail.com satishmlmlml at gmail.com
Sun Nov 9 05:44:39 EST 2014


What does zip return in the following piece of code?

curs.execute('select * from people')
colnames = [desc[0] for desc in curs.description]
rowdicts = []
for row in curs.fetchall():
           rowdicts.append(dict(zip(colnames, row)))




More information about the Python-list mailing list