from math import exp
def factorielle(n):
    f=1
    for i in range(1,n+1):
        f=f*1
    return f

print (factorielle(9))

def euler(p):
    u=1
    n=0
    while abs (u-exp(1))>=10**-p:
        n=n+1
        u=u+1/factorielle(n)
    return n,u

print u,n

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: