title: I can't find out how to replay my game when the player wins or loses
body: <p>I can't find out how to replay my game when the player wins or loses</p>
  <pre><code>import math
  import random
  list = ['rock','paper','scissors']
  winstreek = 0
  
  player = input(&quot;rock paper or scissors?&quot;)
  computer = random.choice(list)
  
  if player == &quot;rock&quot;:
    if computer == &quot;rock&quot;:
      print(&quot;tie&quot;)
    if computer == &quot;paper&quot;:
      print(&quot;computer wins&quot;)
    if computer == &quot;scissors&quot;:
      print(&quot;player wins&quot;)
      winstreek += 1
  
  if player == &quot;paper&quot;:
    if computer == &quot;rock&quot;:
      print(&quot;player wins&quot;)
      winstreek += 1
    if computer == &quot;paper&quot;:
      print(&quot;tie&quot;)
    if computer == &quot;scissors&quot;:
      print(&quot;computer wins&quot;)
  
  if player == &quot;scissors&quot;:
    if computer == &quot;rock&quot;:
      print(&quot;computer wins&quot;)
    if computer == &quot;paper&quot;:
      print(&quot;player wins&quot;)
      winstreek += 1
    if computer == &quot;scissors&quot;:
      print(&quot;tie&quot;)
  
  print(&quot; &quot;)
  print(f&quot;winstreek: {winstreek}&quot;)
  </code></pre>