title: How do I break a for loop inside of a while loop?
body: <p>I'm trying to make a lingo game, and me and my teacher are stymied on this section. We've tried just about everything so far, still no dice.</p>
  
  <p>Basically, we're trying to check and see if the entry equals the randomly generated word, but the code seems to be skipping over this line, even if the conditions are met.</p>
  
  <p>We think that it has to do with the code saving the enter keystroke after the user input's the entry, but we tried that and it still doesn't work. I think we may have to use a replace(), but I'm not sure.</p>
  
  <p>We have tried:</p>
  
  <p>.strip
  .rstrip("\r\n")
  Moving the conditional to the front and back, and even outside the loop.</p>
  
  <pre><code>chance = 0
  print("Welcome to Lingo! You will have eight chances to guess the word.")
  
  word = get_word()
  print(word)
  while(chance &lt;= 8):
      chance += 1
      print()
      entry = input("Please enter a five letter word: ")
  
  
      for ltr in entry:
          place = word.find(ltr.lower())
  
  
          if(place &lt; 0):
              print(ltr, sep ="", end ="")
          elif(entry[place] == word[place]): 
               print('[', ltr, ']', sep="", end="")
          else:
              print('(', ltr, ')', sep="", end="")
          if entry.rstrip("\r\n") == word:
              print("Good job, you guessed the word! Have a cookie! \ud83C")
              break       
  
      if chance == 8:
          print("You lose. Better luck next time.")
  </code></pre>