fork download
  1. def func():
  2. return 1, 2, 3, 4, 5
  3.  
  4. a, b, c, d, e = func()
  5. print(a, b, c, d, e)
  6.  
  7. a, b, *rest = func()
  8. print(a, b, rest)
  9.  
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
1 2 3 4 5
1 2 [3, 4, 5]