I am in middle school and just learning programming. I wrote this code in python for a guessing game but not sure what i am doing wrong. It never goes to the if statement. Can you please guide me what am I doing wrong? Thank you
import random
easy = random.randint(1,100)
medium = random.randint(1,1000)
hard = random.randint(1,10000)
guesses = 0
print "Hello, what's your name?"
name = raw_input('')
print "Hi "+ name +", welcome to the guessing game!"
ques = raw_input("Would you like the difficulty to be easy(1), medium(2) or      hard(3)?")
if ques ==1:
    num = easy
    print "I am thinking of a number from the range of 1 to a 100!"
    print "Try to guess my number."
elif ques == 2:
    num = medium
    print "I am thinking of a number from the range of 1 to a 1,000!"
    print "Try to guess my number"
elif ques == 3:
    num = hard
    print "I am thinking of a number from the range of 1 to 10,000"
    print "Try to guess my number"
while guesses < 100: 
    print "Take a guess: "
    guess = raw_input("")
    guesses = guesses + 1
    if guess < num: 
        print "Your guess is too low"
    if guess > num:
        print "Your guess is too high"
    if guess == num:
        break
if guess == num:
    guesses = str(guesses)
    print "Good job "+ name +", it took you " + guesses +"to find my   number!!!"
if guess != num:
    num = str(num)
    print('Nope, The number I was thinking of was ' + number + "!")     
 
    