fork(1) download
  1. from functools import reduce
  2. def fn(x,y):
  3. return x*10+y
  4.  
  5. print(reduce(fn,[1,2,3,4]))
  6. # your code goes here
Success #stdin #stdout 0.09s 14096KB
stdin
Standard input is empty
stdout
1234