human
Print Triangle separated pattern | Function to print pattern recursively.
Base Case.
Conditions to print slash.
Condition to print forword slash.
Condition to print backward slash.
Else print '*.
Recursive call for rows.
Recursive call for changing the rows.
Driver Code.
Function Call"
Solution in Python:
 Give me a code to print Triangle separated pattern and the other steps required?
assistant
#Here is code to print Triangle separated pattern and the other steps required.
 def printPattern ( i , j , n ) :
	if ( j >= n ) :
		return 0
	if ( i >= n ) :
		return 1
	if ( j == i or j == n - 1 - i ) :
		if ( i == n - 1 - j ) :
			print ( " / " , end = " " )
		else :
			print ( " \\ " , end = " " )
'
	else :
		print ( " * " , end = " " )
	if ( printPattern ( i , j + 1 , n ) == 1 ) :
		return 1
	print ( )
	return printPattern ( i + 1 , 0 , n )
if __name__ == " _ _ main _ _ " :
	N = 9
	printPattern ( 0 , 0 , N )