The problem:
The computer randomly generates a number. The user inputs a number, and the computer will tell you if you are too high, or too low. Then you will get to
your user variable is string type because raw_input() returns string, change your code like:
user
raw_input()
user = int(raw_input('> '))
So user would be integer.