title: How to let Try Except output more details? To show where exactly did it happen? - Python
body: <p>if we input</p>
  <pre><code>10/0
  </code></pre>
  <p>it will output: (Question here --- desired output while using Try Except)</p>
  <pre><code>Traceback (most recent call last):
    File &quot;D:\Python_Projects\00_Live\env\lib\site-packages\IPython\core\interactiveshell.py&quot;, line 3427, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
    File &quot;&lt;ipython-input-2-e574edb36883&gt;&quot;, line 1, in &lt;module&gt;
      10/0
  ZeroDivisionError: division by zero
  </code></pre>
  <p>but if we use</p>
  <pre><code>try:
      10/0
  except Exception as e:
      print(e)
  </code></pre>
  <p>it only output:</p>
  <pre><code>division by zero
  </code></pre>
  <p>How do we get python to output the whole errors like in the first case while using Try Except?</p>