How do I use try .. except or if ...else to validate user input?
<p>I want to restrict user input so that a provided <code>N</code> obeys <code>N &gt;0</code> or <code>N &lt; 100</code>.</p>

<p>Should I use <code>if... else</code> or <code>try... except</code>? Could you provide examples of both approaches?</p>
