## ## one_value - return the first column of the first row of an SQL query # def one_value(curs, query): curs.execute(query) return curs.fetchone()[0]