human
Hexadecagonal number | Function to calculate hexadecagonal number.
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to hexadecagonal number and the other steps required.
 def hexadecagonalNum ( n ) :
	return ( ( 14 * n * n ) - 12 * n ) // 2
n = 5
print ( " % sth ▁ Hexadecagonal ▁ number ▁ : ▁ " % n , hexadecagonalNum ( n ) )
n = 9
print ( " % sth ▁ Hexadecagonal ▁ number ▁ : ▁ " % n , hexadecagonalNum ( n ) )