import random print "Hello, what is your name?" x = raw_input() print " Hello, " +x+ ", how are you "+x+"? Can you guess the number? It's a number between 1 and 1,000" random = random.randint(1,1000) guess = int(raw_input("Enter a number")) if guess > random: print "That number is too high" elif guess < random: print "That number is too low" elif guess == random: print "Good job " +x+ ", that's correct."