title: Python- using only the key value with **kwargs
body: <p>I am struggling to figure out how to use **kwargs but also, only use the values from keys from additional arguments that I am using. For example, I have a script that uses an API to submit data for POST requests but on occasion, I may need to hit the endpoint for the API more than once based upon additional arguments that the user provides. Here is what my code looks like:</p>
  
  <pre><code>def apiExample(name, location, user, **kwargs):
  print name
  print location
  url = "https://example.com/user?"+str(user)
  ...
  url2 = "https://example2.com/user2?"+str(user2)
  ...
  url3 = "https://example2.com/user3?"+str(user3)
  ...
  </code></pre>
  
  <p>I would then use the function like this with additional KW arguments provided:</p>
  
  <pre><code>apiExample("Bob", "Texas", 45582 , user2=20, user3=5625)
  </code></pre>
  
  <p>I know I am missing something here: what I am trying to accomplish is, I want the ability to use the values provided for my additional user 2 and user 3 function arguments (in this example) as the values for my url2 and url3 statements within my function. </p>
  
  <p>From what I understand the **kwargs, or rather the ** syntax will take all additional keyword arguments I provide and add them to a dictionary so I really don't know how to proceed from here.</p>
  
  <p>There may also be a better way to do this as well!</p>
  
  <p>Any guidance would be greatly appreciated. </p>