def factorielle(n): P=1 for i in range(...,...): P=... return(...)