title: How do I add a feature that asks user if they would like to play again?
body: <p>Make a two-player Rock-Paper-Scissors game. (Hint: Ask for player plays (using input), compare them, print out a message of congratulations to the winner, and ask if the players want to start a new game</p>
  <pre><code>ask_p1 = input(&quot;Player 1, Enter rock/paper/scissors: &quot;)
  ask_p2 = input(&quot;Player 2, Enter rock/paper/scissors: &quot;)
  
  def rock_paper_scissors(p1, p2):
      a_list = [&quot;rock&quot;, &quot;paper&quot;, &quot;scissors&quot;]
  
      while p1 == p2:
          print (&quot;Nobody wins. Try again&quot;)
          p1 = input(&quot;Player 1, Enter rock/paper/scissors: &quot;)
          p2 = input(&quot;Player 2, Enter rock/paper/scissors: &quot;)
  
      if p1 == &quot;rock&quot; and p2 == &quot;paper&quot;:
          print (&quot;Player 2 wins!&quot;)
  
      elif p1 == &quot;paper&quot; and p2 == &quot;rock&quot;:
          print (&quot;Player 1 wins!&quot;)
  
      elif p1 == &quot;rock&quot; and p2 == &quot;scissors&quot;:
          print (&quot;Player 1 wins!&quot;)
  
      elif p1 == &quot;scissors&quot; and p2 == &quot;rock&quot;:
          print (&quot;Player 2 wins&quot;)
  
      elif p1 == &quot;paper&quot; and p2 == &quot;scissors&quot;:
          print (&quot;Player 2 wins!&quot;)
  
      elif p1 == &quot;scissors&quot; and p2 == &quot;paper&quot;:
          print (&quot;Player 1 wins!&quot;)
  
  rock_paper_scissors(ask_p1, ask_p2)
  </code></pre>