human
Diagonal of a Regular Hexagon | Function to find the diagonal of a regular hexagon.
Side cannot be negative.
Length of the diagonal.
Driver code"
How can the above be solved in Python?

=====
Write me a code to diagonal of a Regular Hexagon and the other steps required?
assistant
#Here is code to diagonal of a Regular Hexagon and the other steps required.
 def hexDiagonal ( a ) :
	if ( a < 0 ) :
		return - 1 ;
	d = 1.73 * a ;
	return d ;
a = 9 ;
print ( hexDiagonal ( a ) ) ;