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.

https://replit.com/@Chandler0Bing/Collage-Application#main.py

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

(With Break)
image

(Code Spot)

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

2 Likes

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