How do I determine input as an integer and the length, simultaneously?
<p>Ok so I'm really new to programming. My program asks the user to enter a '3 digit number'... and I need to determine the length of the number (make sure it is no less and no more than 3 digits) at the same time I test to make sure it is an integer. This is what I have:</p>

<pre><code>while True:
    try:
        number = int(input("Please enter a (3 digit) number: "))
    except:
        print('try again')
    else:
        break
</code></pre>

<p>any help is appreciated! :)</p>