Nov-15-2019, 01:59 PM
The break statement is used to break out of a loop. You have an if statement, but no loop.
Also pls use python tags when posting code. That keeps the formatting - otherwise impossible to detect indentation problems.
Also pls use python tags when posting code. That keeps the formatting - otherwise impossible to detect indentation problems.