title: When running this code, why does the loop not wait for my response?
body: <pre><code>import random
  
  def rock_paper_scissors(choice):
      computer_choice = random.choice(['rock', 'paper', 'scissors'])
      while True:
          if choice == computer_choice:
              print("Tie! Play again.")
              choice
          elif choice.lower() == 'quit':
              break
  
          elif choice.lower() == 'rock' and computer_choice.lower() == 'paper':
              print("TRY AGAIN!", computer_choice.lower(), "beats", choice.lower())
              choice
          elif choice.lower() == 'rock' and computer_choice.lower() == 'scissors':
              print("YOU WON!", choice.lower(), "beats", computer_choice.lower())
              choice
          elif choice.lower() == 'paper' and computer_choice.lower() == 'scissors':
              print("TRY AGAIN!", computer_choice.lower(), "beats", choice.lower())
              choice
          elif choice.lower() == 'paper' and computer_choice.lower() == 'rock':
              print("YOU WON!",  choice.lower(), "beats", computer_choice.lower())
              choice
          elif choice.lower() == 'scissors' and computer_choice.lower() == "rock":
              print("TRY AGAIN!", computer_choice.lower(), "beats", choice.lower())
              choice
          elif choice.lower() == 'scissors' and computer_choice.lower() == "paper":
              print("YOU WON!", choice.lower(), 'beats', computer_choice.lower())
              choice
          else:
              print("Sorry, invalid.")
              choice
  
  print(rock_paper_scissors(input("Rock paper or scissors (enter 'q' to quit): ")))
  </code></pre>
  
  <p>When this code is run,  whatever is in the print in the elif is repeated over and over and over again in the run box. I don't know if I should fix the while statement or add additional code in the elif statements. The input works fine, but I don't know what to add to the while loop. (I am a beginner Python programmer)</p>