In python 3.2, how to compare a symbols e.g. >
<p>Im writing a function which will guess what number I'm thinking of, but how do I compare a symbol like a > or less than symbol?</p>

<pre><code>def NumberGuess (low,high):
    guess = ((low+high//2)

    if str(input(guess,"?")) == ("&gt;") :
         NumberGuess (guess,high)
    elif str(input(guess,"?")) == "&lt;":
         NumberGuess (low,guess)
    else:
         str(input(guess,"?")) == "="
</code></pre>

<p>This is what I have so far, I could do it another way but this is bugging me now and I wanna figure it out
Any help is appreciated!</p>
