human
Write me a code to program for nth Catalan Number and the other steps required given the following:
Program for nth Catalan Number | A recursive function to find nth catalan number.
Base Case.
Catalan ( n ) is the sum of catalan ( i ) * catalan ( n - i - 1 ).
Driver Code"
Solution in Python:
assistant
#Here is code to program for nth Catalan Number and the other steps required.
 def catalan ( n ) :
	if n <= 1 :
		return 1
	res = 0
	for i in range ( n ) :
		res += catalan ( i ) * catalan ( n - i - 1 )
	return res
for i in range ( 10 ) :
	print catalan ( i ) ,