title: How do I access the parameters of the function one by one?
body: <p>So, I'm still learning how to code and I'm making this higher or lower game, and I made a function that pulls out info from a huge list with dictionaries inside it called &quot;data&quot;:</p>
  <p>Here is my code so far:</p>
  <pre><code>def choice_of_oponents(opponent1, opponent2):
    &quot;&quot;&quot;
    Gets the info on 2 people randomly and assigns them to the variables 'opponent1' and 'opponent2'
    &quot;&quot;&quot;
    opponent1 = random.choice(data)
    opponent2 = random.choice(data)
  
  def winner(opponent1, opponent2):
   #This function is supposed to pull out the info stored in the parameters in the first function and determine the winner based on the data
  </code></pre>
  <p>I'm not sure how to write the second function or if it is even possible to pull out info from the parameters of the 1st function without making extra variables. Can someone help solve this?</p>