How can I get the first two digits of a number?
<p>I want to check the first two digits of a number in Python. Something like this:</p>

<pre><code>for i in range(1000):

    if(first two digits of i == 15):
        print("15")

    elif(first two digits of i == 16):
        print("16")
</code></pre>

<p>Is there a command to check the first two digits of a number? I'd like to avoid commands like <code>if(i&gt;149 and i&lt;160):...</code></p>