title: How to make elif statement and except ValueError repeat function?
body: <p>I am on section 4 of the Udemy &quot;Automate the Boring Stuff&quot; course, which covers handling errors with try/except.</p>
  <p>How can I get the script to run from the beginning if the user input is an invalid non-integer or negative integer?</p>
  <pre><code>print('How many cats do you have?')
  numCat = input()
  try:
      while True:
          if int(numCat) &gt;= 4:
              print('That is a lot of kitties')
              break
          elif int(numCat) &lt;= -1:
              print('You can not have '+str(numCat)+' kitties, try again')
              break
          else:
              print('That is not that many kitties')
              break
  except ValueError:
      print('Please enter a number, try again')
  </code></pre>