title: Can't catch ValueError in Python
body: <p>I am starting to learn Python, and I wrote a very simple code to practice try/except.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>a = float(input('num1: '))
  b = float(input('num2: '))
  
  try:
        result = a / b
  except ValueError as e:
        print ('error type: ', type (e))
  
  print(result)
  </code></pre>
  
  <p>Whenever I enter a letter as a number, the print in except is working, but the code crashes.</p>
  
  <p><code>ZeroDivisionError</code> &amp; <code>TypeError</code> are working, but <code>ValueError</code> is not.</p>
  
  <p>I even put inputs in separate try/except and it is still not working.</p>
  
  <p>How can I handle this error here, and in the real app?</p>