使用 ChatGPT 编写 Python 函数计算三角形面积。给出 (1)函数描述;(2)函数定义;(3)函数输出。搭建如示例的代码框架,让 ChatGPT 帮你完成代码。
```
# Calculates the area of a triangle given its base and height.
def calculate_area_of_triangle(base: float, height: float) -> float:
# content
return area
# args: [23, 35]
```
你现在将作为上面的 Python 函数,请写出完整的函数内容,并输出 area 的结果,此外不要输出任何别的信息。
<img src="imgs/ai_function.jpg" width="60%" height="auto">