util module

util.my_func(base, height)

三角形の面積を求める関数です。

パラメータ
  • base (float) --

  • 三角形の底辺です。 --

  • height (float) --

  • 三角形の高さです。 --

戻り値

  • float

  • 底辺×高さ÷2の結果を返します。