I'm trying to assess the compactness of Virginia's congressional districts using the Polsby-Popper measure (4π (Area/Perimeter^2)), with this being my input into the code block:
import math def PolPop(area, peri): PolPop = (4*math.pi)*(area/(peri**2)) return(PolPop)
but I keep getting the error
ERROR 000539: Traceback (most recent call last): File "<expression>", line 1, in <module> TypeError: PolPop() missing 1 required positional argument: 'peri'
I know that I'm missing something from the equation, but I can't seem to figure out what it is.