human
Write me a code to diagonal of a Regular Heptagon and the other steps required given the following:
Diagonal of a Regular Heptagon | Function to return the diagonal of a regular heptagon.
Side cannot be negative.
Length of the diagonal.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to diagonal of a Regular Heptagon and the other steps required.
 def heptdiagonal ( a ) :
	if ( a < 0 ) :
		return - 1
	d = 1.802 * a
	return round ( d , 3 )
if __name__ == " _ _ main _ _ " :
	a = 6
	print ( heptdiagonal ( a ) )