def func(*args): print(args) func(*[1,2]+[3,4]+[5,6]) func(*sum([[1,2],[3,4],[5,6]], []))