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"
How can the above be solved in Python?

Can you provide 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 )