title: while loop for user input doesn't exit
body: <p>The code I have below isn't stopping when I enter the <code>exitCode</code>, and the other problem is that the <code>elif</code> line is detecting every character entered as a number.</p>
  
  <pre><code>counter = 0
  exitCode = 'X'
  wantsToExit = False
  
  while counter &lt; 6 and wantsToExit == False:
          candyName = str(input('Enter the candy\'s code/name ({0} to exit): '.format(exitCode)))
          if candyName == "{0}".format(exitCode):
              wantsToExit == True
              print("You have chosen to exit.")
          elif candyName.isdigit:
              print("Please only enter letters.")
  </code></pre>