fork download
  1. def f(*args):
  2. print(args)
  3.  
  4. f(*[1]+[2]*3) # -> (1, 2, 2, 2)
  5.  
  6. def g():
  7. return [2,3]
  8.  
  9. f(*[1]+g()) # -> (1, 2, 3)
  10.  
Success #stdin #stdout 0.03s 6356KB
stdin
Standard input is empty
stdout
(1, 2, 2, 2)
(1, 2, 3)