human
Write me a code to find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given and the other steps required given the following:
Find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given | Function to find the area of quadrilateral.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to find the area of quadrilateral when diagonal and the perpendiculars to it from opposite vertices are given and the other steps required.
 def Area ( d , h1 , h2 ) :
	area = 0.5 * d * ( h1 + h2 ) ;
	return area ;
if __name__ == ' _ _ main _ _ ' :
	d = 6 ;
	h1 = 4 ;
	h2 = 3 ;
	print ( " Area ▁ of ▁ Quadrilateral ▁ = ▁ " , ( Area ( d , h1 , h2 ) ) ) ;