human
Find Nth term of series 1 , 4 , 15 , 72 , 420. . . | Function for finding factorial of N.
return factorial of N.
Function for calculating Nth term of series.
Driver code"
How can the above be solved in Python?

What is a code to find Nth term of series 1 , 4 , 15 , 72 , 420?
assistant
#Here is code to find Nth term of series 1 , 4 , 15 , 72 , 420.
 def factorial ( N ) :
	fact = 1
	for i in range ( 1 , N + 1 ) :
		fact = fact * i
	return fact
def nthTerm ( N ) :
	return ( factorial ( N ) * ( N + 2 ) // 2 )
if __name__ == " _ _ main _ _ " :
	N = 6
	print ( nthTerm ( N ) )