def test_area(self): res = triangle.area(1, 1) self.assertIsInstance( res, float, f"area should return a floating point number when called with 1, 1. Got {type(res)}." ) self.assertAlmostEqual( res, 0.5, 3, f"area of triangle with sides 1, 1 should be 0.5. Got {res}.")
def main(): # Call the functions from here triangle.hypothenuse(50, 40) triangle.area(50, 40)
def main(): # Call the functions from here print('area: ', triangle.area(10, 20)) print('hypo: ', triangle.hypothenuse(10, 20))
def main(): # Call the functions from here print(triangle.hypothenuse(5, 6)) print(triangle.area(5, 6))
def main(): print(triangle.area(3, 4)) print(triangle.hypothenuse(3, 4)) print(triangle.__version__)
def main(): print("The area is", triangle.area(4, 5)) print("The hypothenuse is", triangle.hypothenuse(4, 5))
def main(): print(triangle.area(5, 5)) print(triangle.hypothenuse(5, 5))
def main(): print(triangle.hypothenuse(1,2), triangle.area(1, 2))
def main(): # Call the functions from here x, y = float(2), float(3) print(triangle.hypothenuse(x, y)) print(triangle.area(x, y))
def main(): print(triangle.hypothenuse(10, 20)) print(triangle.area(30, 40))
def main(): triangle.area(2, 5) triangle.hypothenuse(1, 1) print(triangle.__version__) print(triangle.__doc__) print(triangle.__author__)
def main(): print(triangle.hypothenuse(1, 1)) print(triangle.area(2, 3))
def main(): triangle.hypothenuse(3,4) triangle.area(3,4)
def main(): two = triangle.hypothenuse(1, 1) one = triangle.area(1, 2)