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