title: String variable won't change in function
body: <p>I'm making a game in python and I decided to make most of it within a function. If you look at my code it should change the value of the variable, but it won't.</p>
  <pre><code>s1 = 'John' 
  s2 = 'Carl' 
  s3 = 'Mark' 
  
  def game(name,slot):
  
     slot = int(input()) 
  
      if slot == 1:
         name = s1
  
      if slot == 2:
         name = s2
  
      if slot == 3:
         name = s3
  
  game('John', 1)
  </code></pre>