human
What is a code to pascal 's Triangle and the other steps required given the following:
Pascal 's Triangle | Python3 program for Pascal ' s ▁ Triangle ▁ A ▁ O ( n ^ 2 ) ▁ time ▁ and ▁ O ( 1 ) ▁ extra ▁ space ▁ method ▁ for ▁ Pascal ' s Triangle Pascal function.
used to represent C ( line , i ).
The first value in a line is always 1.
Driver code"
Solution in Python:
assistant
#Here is code to pascal 's Triangle and the other steps required.
 def printPascal ( n ) :
	for line in range ( 1 , n + 1 ) :
		C = 1 ;
		for i in range ( 1 , line + 1 ) :
			print ( C , end = " ▁ " ) ;
			C = int ( C * ( line - i ) / i ) ;
		print ( " " ) ;
n = 5 ;
printPascal ( n ) ;