def myfun(**kwargs): print(kwargs['name'], kwargs['address']) d = {'name':'matt', 'address':'23 23st', 'asdsa':342} myfun(**d)