Nov-03-2020, 05:55 AM
You can return out of a function. You can break out of a loop. You can exit out of a program. You can also organize your logic such that none of those are necessary.
Your tiny snippet of code does not provide any guidance on which way is the right way. As is, your code does stop right after the print and doesn't check any more conditions, or do anything for that matter. There is nothing left to do.
Your tiny snippet of code does not provide any guidance on which way is the right way. As is, your code does stop right after the print and doesn't check any more conditions, or do anything for that matter. There is nothing left to do.