17: A Real Win… break outside of loop?


#1

My code seems to be correct, but it keeps saying that break is outside of the loop.


#2

Hello, @ajaxcoder36167!
The break can only be used inside a loop.

A simple

if/elif/else

can handle it, when there's no loop instruction in it.

Best regards,
g4be


#3

Oh I understand! Thank you!


#4

No problem!
Quote me if there's anything else I can help you with!

Best regards,
g4be


#5

It's still saying I'm wrong. I think it might have something to do with my spacing but I can't figure it out.


Thanks for your help!


#6

The space of your else statement in line 33 is wrong, fixing that might solve the problem.


#7

What is wrong with this? I do not understand where to put the break in this loop. Can someone point out please? The instructions say that it is supposed to go inside the "if" statement.


#8