def blah(*a): print a, len(a) print type(a) blah(1, 2) blah(1,) blah(1) Output is: (1, 2) 2 (1,) 1 (1,) 1