I have a program with some user inputs and I need to check if what the user entered was a string or an integer value between 1 and 10 million.
My code looks like this (simplified):
while True:
    inp = raw_input("Enter a value between 1 and 10 million: ")
    if inp < 1:
        print "Must be higher than 1"
        continue
    elif inp > 10.000.000:
        print "Must be less than 10.000.000"
        continue
    elif 'inp is a string':                           #here's my problem
        print "Must be an integer value!"
        continue
    else:
        'execute the rest of the code'
I don't know how to solve this. My program always terminates when I enter a string by mistake.
Thank you!
 
     
    