User:Michaelolifant/sandbox

From Wikipedia, the free encyclopedia

I am a box of sand.

qwerty

Located in north central Colorado, which is just west of the center of the U.S.

(Not an actual chemical formula)

def y(fn):
    return lambda x : fn(fn , x)

def factorial(n):
    assert type(n) is int , "not an integer!"
    return 1 if n == 0 else n*factorial(n-1)

print( y( lambda fact , num : 1 if (num == 0) else num*fact(fact , num - 1) )(5))
print(factorial(5))