This actually works great. You'll want to coerce the user's input into an integer so that you can check to see if it's higher / lower than the secret number.