Download 163/solution/_reference.py from PRHW/loom-benchmark-mbpp: direct link, hf CLI and curl.
- Browser
- Download file 116 Bytes
-
https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/163/solution/_reference.py
- Command line
-
hf download hf://datasets/PRHW/loom-benchmark-mbpp/163/solution/_reference.py
-
curl -L -o _reference.py https://huggingface.co/datasets/PRHW/loom-benchmark-mbpp/resolve/main/163/solution/_reference.py
116 Bytes
| import math | |
| from math import tan, pi | |
| def area_polygon(s, l): | |
| area = s * (l ** 2) / (4 * tan(pi / s)) | |
| return area |