title: Python: Why Does my while loop keep looping
body: <pre><code>def guess():
      while True:
          try:
              guess = raw_input("Guess your letter")
              if len(guess) != 1 or guess.isdigit() == True:
                  print "Please guess again"
              if len(guess) == 1 and  guess.isdigit() == False:
                  guessed.append = guess
                  return guess
                  break
          except StandardError:
              pass
  
  print guess()
  </code></pre>
  
  <p>this loop keeps repeating no matter what value I put in the raw input. Why???</p>