Currently its written : "for attempt in range(15):"
As it is written now, the if statement:
"if attempt == 15:
self._exitProgram("exceeded number of attempts")"