Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Simple Areas by OrginalS
from math import pi
arr = ["(a[0]/2)**2*pi", "a[0]*a[1]", "(p*(p-a[0])*(p-a[1])*(p-a[2]))**0.5"]
def simple_areas(*a):
p = sum(a)/2
return round(eval(arr[len(a)-1]), 2)
Jan. 2, 2020
Comments: