human
Program to print tetrahedral numbers upto Nth term | function to print tetrahedral series up to n.
loop to print series.
Calculate and print ith Tetrahedral number.
Driver code.
function call to print series"
Solution in Python:
 ... What is a code to program to print tetrahedral numbers upto Nth term and the other steps required?
assistant
#Here is code to program to print tetrahedral numbers upto Nth term and the other steps required.
 def printSeries ( n ) :
	for i in range ( 1 , n + 1 ) :
		num = i * ( i + 1 ) * ( i + 2 ) // 6
		print ( num , end = ' ▁ ' )
n = 10
printSeries ( n )