Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Peano (kind of) solution in Creative category for Funny Addition by ale1ster
def checkio(data):
zero = 0
succ = lambda n: 1 + n
pred = lambda t,n=0: n if succ(n) == t else pred(t, succ(n))
add = lambda a,b: b if a == zero else add(pred(a), succ(b))
(a, b) = data
return add(a,b)
June 2, 2014
Comments: