def f(*args): print(args) f(*[1]+[2]*3) # -> (1, 2, 2, 2) def g(): return [2,3] f(*[1]+g()) # -> (1, 2, 3)
Standard input is empty
(1, 2, 2, 2) (1, 2, 3)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!