title: How to store user input as a keyword argument in python
body: <p>I have a program of this sort:</p>
  
  <pre><code>func1(**kwargs):
  
    for name, value in kwargs.items():
  
        print ("{} = {}".format(name, value))
  </code></pre>
  
  <p>I want the user to input the arguments.
  Something like this:</p>
  
  <pre><code>d={}
  x = input("enter key and value separated by a space ")
  y = x.split(' ')
  d[y[0]] = y[1]
  </code></pre>
  
  <p>I tried storing the input as a dictionary and then passing it as an argument, -  func1(d)  - but it recognized the dictionary as one positional argument.  </p>
  
  <p>Does anyone have any ideas on how to do this?</p>