def test(*arg,**args): for i in arg: print(i) for i in args: print(i) test(1,2,3,a=1,b=2)