human
Give me a code to generate a list of n consecutive composite numbers ( An interesting method ) and the other steps required given the following:
Generate a list of n consecutive composite numbers ( An interesting method ) | function to find factorial of given number.
Prints n consecutive numbers ..
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to generate a list of n consecutive composite numbers ( An interesting method ) and the other steps required.
 def factorial ( n ) :
	res = 1 ;
	for i in range ( 2 , n + 1 ) :
		res *= i ;
	return res ;
def printNComposite ( n ) :
	fact = factorial ( n + 1 ) ;
	for i in range ( 2 , n + 2 ) :
		print ( fact + i , end = " ▁ " ) ;
n = 4 ;
printNComposite ( n ) ;