title: Why am I getting this unexpected keyword argument TypeError?
body: <p>I'm testing some code with <code>*args</code> and <code>**kwargs</code>, and I wrote a dictionary for the <code>**kwargs</code>. For some reason, I'm getting</p>
  <pre class="lang-py prettyprint-override"><code>def func(*args, **kwargs):
      if args:
          second_test(*args)
      elif kwargs:
          second_test(**kwargs)
  
  def second_test(stringa, integera, floata):
      print(&quot;Name: %s, Problems Correct: %d, Points: %f&quot; % (stringa, integera, floata))
  
  profile_1 = [&quot;David&quot;, 21, 132.00]
  func(*profile_1)
  
  profile_1a = {'Name': 'David', 'Problems Correct': 21, 'Points': 132.00}
  func(**profile_1a)
  </code></pre>
  <p>The code starts from <code>line 44</code> and ends at <code>line 57</code>. This is the error I'm getting:</p>
  <pre><code>TypeError: second_test() got an unexpected keyword argument 'Name'
  </code></pre>
  <p><em>I've googled &quot;unexpected keyword argument&quot;, but I can never find a definition; only other stackoverflow articles.</em> What is wrong with my code?</p>