11 lines
236 B
Python
11 lines
236 B
Python
# HumanEval/45
|
|
# Loki Mode Multi-Agent Solution
|
|
# Attempts: 1
|
|
# Passed: True
|
|
|
|
def triangle_area(a, h):
|
|
"""Given length of a side and high return area for a triangle.
|
|
>>> triangle_area(5, 3)
|
|
7.5
|
|
"""
|
|
return (a * h) / 2 |