Question: 
Write a python function to find the largest triangle that can be inscribed in the semicircle.


Model's Code:
def triangle_area(radius):
    if radius < 0:
        return -1
    return (radius ** 2)



Sample Correct Code:
def triangle_area(r) :  
    if r < 0 : 
        return -1
    return r * r 


Asserts:
assert triangle_area(0) == 0
assert triangle_area(-1) == -1
assert triangle_area(2) == 4


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 626 of 974: 466/626 (74.4408945686901%): success