title: While Loop not breaking when it is supposed to
body: <pre><code>def NewCard():
    draw_card = input(&quot;Would you like to draw a new card? 'hit' or 'pass': &quot;).lower()
    if draw_card == &quot;hit&quot;:
      new_card =  cards[random.randint(0, cards_length)]
      player_cards.append(new_card)
      print(f&quot;Your new hand is {player_cards}&quot;)
    elif draw_card == &quot;pass&quot;:
       playerturn = False
       return playerturn 
  
  while playerturn == True:
    Check_Scores()
    NewCard()
  ComputerPlays()
  </code></pre>
  <p>What is supposed to happen is that when the user types &quot;pass&quot; the while loop will break moving on to the next code. But what happens is that the loop repeats forever. This whole block is in another bigger function so that is why it is indented</p>