from random import randint
x=(randint(0,9))
print "I'm thinking of a number between 1 and 10."
y = raw_input("What is your number? (Integer from 1 to 10)")
if y<x:
print "Too low!"
elif y>x:
print "Too high!"
elif y==x:
print "Spot On!"
sys.exit()
How do I loop it so you have to keep guessing until you get the number?