Get the first element of each tuple in a list in Python,res_list = [x[0] for x in rows]