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