title: How do i get the function to restart with new values after the user answer Yes when asked if he wants to try again?
body: <p><strong>UPDATED</strong> - I am trying to get the score updated after every run of the game so basically when the user or computer wins, the score should be updated, but it only updates it once. How do i get the userwin and compwin to stay updated after a new try? </p>
  
  <p>**SOLVED **I need the to get the computer choice to reset after the end of the game and it has to be in the REPLAY function.
  The code only restarts the function without getting new values.</p>
  
  <pre><code>import random
  
  def retry():
      while True:
          replay = input("Want to try again?").lower()
          if replay not in "yn":
              print("Please enter Yes or No.")
          elif replay == "n" or replay == 'no':
              print("Thanks for playing.\n Bye now!")
              break
          elif replay == "y" or replay == "yes":
              print("Let's try again!")
              return rps()
  
  def rps():
      while True:
          compwin = 0
          userwin = 0
          computer = random.choice(picks)
          user = input("Choose: Rock, Paper, Scissors: \n").lower()
          if user not in ['rock','paper','scissors']:
              print("Please choose a valid option.")
          if user == computer:
              print("It's a draw.")
              return retry()
          if ((user == 'rock' and computer == 'paper')or
              (user == 'paper' and computer == 'scissors')or
              (user == 'scissors' and computer == 'rock')):
                  print("Computer won")
                  compwin += 1
                  print("Computer won: ",compwin,"games")
                  return retry()
          if ((user == 'scissors' and computer == 'paper')or
                (user == 'paper' and computer == 'rock')or
                (user == 'rock' and computer == 'scissors')):
                  print('You won!')
                  userwin += 1
                  print("User won: ",userwin,"games")
                  return retry()
  
  
  #Pay attention to wording and parantheses and where you add the line of codes: choice/choices()
  picks = (['rock','paper','scissors'])
  rps()
  
  </code></pre>