print "Think of a number between 1 and 10." guess = 6 answer = raw_input("Is your number equal to " \ + str(guess) + "? ") if answer == "yes": print "I got it right!" if answer != "yes": print "Nuts." print "That's the end of the game."