human
Program to print pentatope numbers upto Nth term | Function to generate nth tetrahedral number.
Function to print pentatope number series upto nth term ..
Initialize prev as 0. It store the sum of all previously generated pentatope numbers.
Loop to print pentatope series.
Find ith tetrahedral number.
Add ith tetrahedral number to sum of all previously generated tetrahedral number to get ith pentatope number.
Update sum of all previously generated tetrahedral number.
Driver code.
Function call to print pentatope number series"
How can the above be solved in Python?

=====
What is a code to program to print pentatope numbers upto Nth term and the other steps required?
assistant
#Here is code to program to print pentatope numbers upto Nth term and the other steps required.
 def findTetrahedralNumber ( n ) :
	return ( int ( ( n * ( n + 1 ) * ( n + 2 ) ) / 6 ) )
def printSeries ( n ) :
	prev = 0
	for i in range ( 1 , n + 1 ) :
		curr = findTetrahedralNumber ( i )
		curr = curr + prev ;
		print ( curr , end = ' ▁ ' )
		prev = curr
n = 10
printSeries ( n )