tuple data structure
tuple ()
so about the comma:
the comma in the case of parentheses says not only to the user, but not to the interpreter itself, that this is an iterated object, and not grouping brackets
as it was said above: consider that this is a list [[2], [6]] with the exception that it is not changeable (you can read, but you cannot write to it) and in your case (working with the "raw cursor") advise this chip:
cur.execute("SQL STATEMENT") columns = map(lambda x: x[0], cur.description) for row in cur.fetchall(): row_as_dict = dict(zip(columns, row)) do_something()
good luck