"""
    January 30, 2012
    guess a number

    pseudocode:
        choose secret number
        get guess from user
        while guess is incorrect
            tell user 'too high' or 'too low'
            get guess from user

        tell user they are correct
"""
import random

secret = random.randint(1, 100)

guess = int(input("Enter integer between 1 and 100:  "))

while secret != guess :
    if guess < secret :
        print("too low")
    else :
        print("too high")
    guess = int(input("Guess again:  "))

print(secret, "is the correct answer")


