human
Find length of Diagonal of Hexagon | Function to find the diagonal of the hexagon.
side cannot be negative.
diagonal of the hexagon.
Driver code"
How can the above be solved in Python?

What is a code to find length of Diagonal of Hexagon and the other steps required?
assistant
#Here is code to find length of Diagonal of Hexagon and the other steps required.
 def hexadiagonal ( a ) :
	if ( a < 0 ) :
		return - 1
	return 2 * a
if __name__ == ' _ _ main _ _ ' :
	a = 4
	print ( hexadiagonal ( a ) )