Let\'s imagine I have a dict :
d = {\'a\': 3, \'b\':4}
I want to create a function f that does the exact same thing than this function : >
Sure... hope this helps
def funcc(x, **kwargs): locals().update(kwargs) print(x, a, b, c, d) kwargs = {'a' : 1, 'b' : 2, 'c':1, 'd': 1} x = 1 funcc(x, **kwargs)