I have a program of this sort:
func1(**kwargs):
for name, value in kwargs.items():
print ("{} = {}".format(name, value))
I want the user to input the arguments. Something like this:
d={}
x = input("enter key and value separated by a space ")
y = x.split(' ')
d[y[0]] = y[1]
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.
Does anyone have any ideas on how to do this?