guess a number homework

My code fulfills the necessary requirements, however, if guessed number is out-of-range, the program returns the "out of range" error message as well as the "too high" or "too low" message. Ideally it would return only the "out of range error" message. As far as I know that is the only issue. I did implement the extra credit piece that allows the user to set the maximum number but no scalable number of guess. I would set the amount of guesses allowed by dividing the users set maximum_guessable_number by 3! EX: If they set the maximum_guessable_number to 45, then they would have 15 guesses.