title: Problem running a very simple Python program
body: <p>Why is my program giving me an error here?</p>
  
  <pre><code>import random
  
  TheNumber = random.randrange(1,200,1)
  NotGuessed = True
  Tries = 0
  
  GuessedNumber = int(input("Take a guess at the magic number!: "))                 
  
  while NotGuessed == True:
      if GuessedNumber &lt; TheNumber:
          print("Your guess is a bit too low.")
          Tries = Tries + 1
          GuessedNumber = int(input("Take another guess at the magic number!: "))
  
      if GuessedNumber &gt; TheNumber:
          print("Your guess is a bit too high!")
          Tries = Tries + 1
          GuessedNumber = int(input("Take another guess at the magic number!: "))
  
      if GuessedNumber == TheNumber:
          print("You've guess the number, and it only took you " + string(Tries) + "!")
  </code></pre>
  
  <p>The error is on the last line. What can I do?</p>
  
  <p>Edit:</p>
  
  <p>Also, why can;t I use Tries++ here in Python? Isn't there an autoincrement code?</p>
  
  <p>Edit 2: Error is:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/Sergio/Desktop/GuessingGame.py", line 21, in &lt;module&gt;
      print("You've guess the number, and it only took you " + string(Tries) + "!")
  NameError: name 'string' is not defined
  </code></pre>