title: How to re-run through loop when exception happens in Python?
body: <p>When executing this it only runs through the initial if elif statement. If I reach 0 it returns the proper print statement along with when I'm subtracting numbers. However if I try to subtract to reach a negative number and therefore reach the exception, it doesn't print the statement below and reloop through like I want it to.</p>
  <pre><code>number = 15
  print(&quot;Subtract the number&quot;, number, &quot;until it has reached 0&quot;)
  while number != 0:
      try:
          x = int(input())
          number = number-x
          if number &gt; 0:
              print(&quot;You have&quot;, number, &quot;points to spend!&quot;)
          elif number == 0:
              print(&quot;You have used all your points!&quot;)
              break
      except number &lt; 0:
              print(&quot;You don't have enough points for that!&quot;)
              continue
  </code></pre>