Write a function to return the area of a rhombus


Topic: Write a function to return the area of a rhombus

Solution

def area(d1, a): 
    d2 = (4*(a**2) - d1**2)**0.5
    area = 0.5 * d1 * d2 
    return(area) 



List all Python Programs