human
Centered heptagonal number | Function to find Centered heptagonal number.
Formula to calculate nth Centered heptagonal number.
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to centered heptagonal number and the other steps required.
 def centered_heptagonal_num ( n ) :
	return ( 7 * n * n - 7 * n + 2 ) // 2
n = 5
print ( " % sth ▁ Centered ▁ heptagonal ▁ number ▁ : ▁ " % n , centered_heptagonal_num ( n ) )