https://researchdatapod.com/python-syntaxerror-break-outside-loop/
How to Solve Python SyntaxError: ‘break’ outside loop