human
Pentanacci Numbers | Function to print Nth Pentanacci number.
Initialize first five numbers to base cases.
declare a current variable.
Loop to add previous five numbers for each number starting from 5 and then assign first , second , third , fourth to second , third , fourth and curr to fifth respectively.
Driver code"
Solution in Python:

Write me a code to pentanacci Numbers and the other steps required?
assistant
#Here is code to pentanacci Numbers and the other steps required.
 def printpenta ( n ) :
	if ( n < 0 ) :
		return
	first = 0
	second = 0
	third = 0
	fourth = 0
	fifth = 1
	curr = 0
	if ( n == 0 or n == 1 or \ n == 2 or n == 3 ) :
		print ( first )
	elif ( n == 5 ) :
		print ( fifth )
	else :
		for i in range ( 5 , n ) :
			curr = first + second + third + fourth + fifth
			first = second
			second = third
			third = fourth
			fourth = fifth
			fifth = curr
	print ( curr )
n = 10
printpenta ( n )