human
Polygon with maximum sides that can be inscribed in an N | Function to find the maximum sided polygon that can be inscribed.
Base Case.
Return n / 2 if n is even Otherwise , return - 1.
Driver Code.
Given N.
Function Call"
Solution in Python:
 ... Give me a code to polygon with maximum sides that can be inscribed in an N and the other steps required?
assistant
#Here is code to polygon with maximum sides that can be inscribed in an N and the other steps required.
 def MaximumSides ( n ) :
	if ( n < 4 ) :
		return - 1
	if n % 2 == 0 :
		return n // 2
	return - 1
if __name__ == ' _ _ main _ _ ' :
	N = 8
	print ( MaximumSides ( N ) )