Program to calculate the area of Kite | Python implementation of the approach ; Function to return the area of the kite ; convert angle degree to radians ; use above formula ; Driver code
import math NEW_LINE PI = 3.14159 / 180 ; NEW_LINE def areaOfKite ( a , b , angle ) : NEW_LINE INDENT angle = angle * PI ; NEW_LINE area = a * b * math . sin ( angle ) ; NEW_LINE return area ; NEW_LINE DEDENT a = 4 ; b = 7 ; angle = 78 ; NEW_LINE print ( " Area ▁ of ▁ Kite ▁ = ▁ " , areaOfKite ( a , b , angle ) ) ; NEW_LINE