def factorielle(n): i = 0 fact = 1 while i <= n: fact = fact * i i = i + 1 return fact