Question: 
Write a function to calculate the area of a regular polygon.


Model's Code:
def area_polygon(n, s):
    import math
    return (n * s ** 2) / (4 * math.tan(math.pi / n))



Sample Correct Code:
from math import tan, pi
def area_polygon(s,l):
  area = s * (l ** 2) / (4 * tan(pi / s))
  return area


Asserts:
assert area_polygon(4,20)==400.00000000000006
assert area_polygon(10,15)==1731.1969896610804
assert area_polygon(9,7)==302.90938549487214


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 163 of 974: 119/163 (73.00613496932516%): success