To obtain all the records retrieved, you may use <cursor>. ............... method.
fetchall()
Reason — The <cursor>.fetchall() method will return all the rows from the resultset in the form of a tuple containing the records.
<cursor>.fetchall()