Area of a polygon (Recursively using Python)

后端 未结 3 1950

I\'m trying a solve an exercise from Exploring Python book. But, I guess I don\'t understand concept of the recursion. I\'ve written some Recursively function. Therefore I k

3条回答
  •  暖寄归人
    2021-01-18 12:09

    Use this formula.

    https://upload.wikimedia.org/wikipedia/en/math/c/b/b/cbb6a25439b51061adb913c2a6706484.png

    You accomplish your task in one for loop.

提交回复
热议问题