title: how do I fix this error in python 3.3? TypeError: unorderable types: str() < int()
body: <p>i was trying to create a number guessing game but I get the error for "guessestaken"I copied the code from <a href="http://inventwithpython.com/IYOCGwP_book1.pdf" rel="nofollow">http://inventwithpython.com/IYOCGwP_book1.pdf</a> page 57.Sorry I am a bit new to python.</p>
  
  <pre><code>import random
  guessestaken=0
  print ("hello what ur name?")
  myname=input()
  number=random.randint(1,20)
  print ("well " + myname + " i am thinking of a number guess it")
  
  while guessestaken &lt; 6 :
      guessestaken=guessestaken+1
      guess =input('take a guess')
      guess = int(guess)
  
      if guess &lt;number:
          print('too low')
      if guess &gt;number:
          print ('too high')
      if guess ==number:
          break
      if guess ==number:
          guessestaken=str(guessestaken)
          print ('good job ' + myname + ' you are right!')
          print ('you guessed it in ' + guessestaken + ' guesses')
      if guess !=number:
          guessestaken = str(guessestaken)
          print ("I am sorry but you couldn't get it right")
          print ("you couldn't guess it in " + guessestaken + " guesses")
  </code></pre>