def func(**kwargs): for i in kwargs: print(i,kwargs[i]) func(a=1,b=2,c=7)