def test(a, b=None, c=None, d=None): print(a) print(b) print(c) print(d) test(*[1, 2, 3, 4])