I can't go back to a submenu. Using continue or break will make me go back to the main menu.
Can you get what I'm saying? New to Python. Thanks!
Python has it's own forum.
Are you taking about menu's in a Widget toolkit like TKinter? Or are you talking about nested loops. Or you can also put the loop in a function, and return. Also, python has a "for...else" construct which can do this. Google it.
If you're talking about nested loops, thne you can either use a variable flagging whether or not the outerloop should break. Or you can use an exception.
Give us a simplified example of what you mean.
Posting your code can be helpful. Hiroshe has made valid points, and without your code, we can't be more specific than that.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.