@MiroslavRalevic For small, interactive scripts or Jupyter notebooks, I just use exit(), it’s built-in and works fine.
But I avoid it in real applications since it’s not meant for production use.
Under the hood, exit() and quit() just raise SystemExit, which is what sys.exit() does too, so you’re essentially doing the same thing, but sys.exit() is more explicit and reliable in all contexts.