def ff(**a): print a ff(x=1,y=2) ------------------ {'y': 2, 'x': 1} def gg(*b): print b gg(1,2,4,5,6,7) ------------ (1, 2, 4, 5, 6, 7)