fork(1) download
  1. from functools import reduce
  2.  
  3. print(reduce(lambda res, y : res + y, list(map(lambda x: (1/(3 ** x)), range(100)))) / reduce(lambda res, y : res + y,list(map(lambda x: (1/(2 ** x)), range(100)))))
Success #stdin #stdout 0.02s 10376KB
stdin
Standard input is empty
stdout
0.75