I was told in another language that it is bad practice to call the equivalent to quit()
or exit()
in Python.
Rather then calling a similar function to quit()
or exit()
in Python that it is better to let the program end "naturally". In that the main document ends after completing any function/method calls or any condition checking, etc...
Is this also true in Python or is it fine to use these functions for ending the program?
Edit: I will include a link to my actual code to hopefully add some clarification, it is the bottom two function that I'm having issues with
https://github.com/itwasntzak/delivery_tracking-python/blob/test/menus.py