human
Compute n ! under modulo p | Returns value of n ! % p.
Driver Code"
Solution in Python:
 Write me a code to compute n ! under modulo p and the other steps required?
assistant
#Here is code to compute n ! under modulo p and the other steps required.
 def modFact ( n , p ) :
	if n >= p :
		return 0
	result = 1
	for i in range ( 1 , n + 1 ) :
		result = ( result * i ) % p
	return result
n = 25 ; p = 29
print ( modFact ( n , p ) )