title: Is there an alternative for sys.exit() in python?
body: <pre><code>try:
   x="blaabla"
   y="nnlfa"   
   if x!=y:
          sys.exit()
      else:
          print("Error!")
  except Exception:
      print(Exception)
  </code></pre>
  
  <p>I'm not asking about why it is throwing an error. I know that it raises <code>exceptions.SystemExit</code>. I was wondering if there was another way to exit?</p>