def factorielle(n):
if n == 0:
p=1
else:
p=1
for i in range(1,n+1):
p=p*i
return (p)
n = 1558
fact = factorielle(n)
print(fact)
'''def factorielle_recresive(n):
if n == 0:
p=1
else:
p=1
while n>0 :
p=n*factrorielle(n-1)
return (p)
'''
n = 0
fac = factorielle(n)
print(fac)
def coefbinomial(n):
if k<=n:
return(factorielle(n)/(factorielle(k)*factorielle(n-k)))
else:
return()
print(coefbinomial(2,6))
print(int(coefbinomial(2,6)))
To embed this project on your website, copy the following code and paste it into your website's HTML: