def allow_guess(number):
    """
    Input: Takes in the number which the user is to guess
    Gets user input and tells the user whether the number is too high
        or too low
    Returns false if the guess is wrong and True if correct
    """
    print('Guess a number')
    guess = input()
    guess = int(guess)

    if guess < number:
        print('Your guess is too low.')
        return False

    elif guess > number:
        print('Your guess is too high.')
        return False

    else:  # If guess is equal to number
        return True