human
Find the last two digits of Factorial of a given Number | Function to print the last two digits of N !.
For N >= 10 , N ! % 100 will always be 0.
Calculating N ! % 100.
Driver code"
How can the above be solved in Python?
 ... Give me a code to find the last two digits of Factorial of a given Number and the other steps required?
assistant
#Here is code to find the last two digits of Factorial of a given Number and the other steps required.
 def lastTwoDigits ( N ) :
	if ( N >= 10 ) :
		print ( "00" , end = " " )
		return
	fac = 1
	for i in range ( 1 , N + 1 ) :
		fac = ( fac * i ) % 100
	print ( fac )
if __name__ == ' _ _ main _ _ ' :
	N = 7
	lastTwoDigits ( N )