Need Help Breaking My Code

I haven’t been able to break this code. I started it as a school project but it’s now just turned into something I am doing for fun, whenever I have time. When I go down to a section under the if statement and I keep responding to it in the console but when I say everything is correct it gives me a print that it is supposed to do but then reasks the questions again. When I put a break it will just give me an error.

(Without Break)
Screenshot 2023-01-17 11.18.53 AM

(With Break)

(Code Spot)

You cannot break without a loop, instead you can use exit() which will exit the program


No, you can. THere’s a certain input from the console for that.

Actually, that is not possible. You may not use the keyword break not within a loop

Thank you, it worked.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.