To fetch one record from the resultset, you may use <cursor>. ............... method.
fetchone()
Reason — The <cursor>.fetchone() method will return only one row from the resultset in the form of a tuple containing a record.
<cursor>.fetchone()