title: How to run a while loop as long as there is no error
body: <p>I am running a code that might get an error, but I want to run it as long as
  there is no error.</p>
  
  <p>I thought about something like that:</p>
  
  <pre><code>while ValueError:
      try:
          x = int(input("Write a number: "))
      except ValueError:
          x = int(input("You must write a number: "))`
  </code></pre>