def facto_partielle(n,k): P=1 for i in range(...,...): P=i*P return(...)