title: Trigger an exception if it is not an integer between 0 and 7 inclusively
body: <pre><code>        try:
              psl = int(input(&quot;Source Position - Line Number: &quot;))
              psc = int(input(&quot;Source Position - Column Number: &quot;))
          except ValueError:
              print(&quot;Error: you have to enter an integer between 0 and 7 inclusively\n&quot;)
              continue
  </code></pre>
  <p>In that little piece of code, a player have to enter two integers between 0 and 7 inclusively corresponding to a line and a column. I realised that if I enter <code>9</code>, the exception is never triggered. How can I trigger the exception if an integer is not in the range [0, 7]?</p>