Python mini-game isn't working correctly
<pre><code>#!/usr/bin/env python
from random import randint
b = randint(0, 100)
print b
a = raw_input("Try your luck, choose number (0-100): ")
if a.isdigit():
    if(a == b):
        print 'great!'
    else:
        print('wrong! that number was %s' % b)
else:
    print "string isn't number"
</code></pre>

<p>And the problem is:<br>
$ python luck.py<br>
62<br>
Try your luck, choose number (0-100): 62<br>
wrong! that number was 62<br></p>
