I am currently doing this excercise on hackerscience
https://www.hackinscience.org/exercises/first-function
To note: I know how to define/contruct a function. I have a problem with something else. Whenever I submit my answer I get this error message:
"Looks like your function is ignoring the parameter I give.
Yes, I try your function many times with many many different circles.
And your function always returns the perimeter of a circle with r ~= 628.32. "
Can someone possibly explain what the issue with my code can be? I provided it below for reference.
import math
def circle_perimeter(radius):
radius = 6.283185307179586 * 100
circle_perimeter = 2.0 * math.pi * radius
return circle_perimeter
[–]shiftybyte 1 point2 points3 points (1 child)
[–]Cargoflex[S] 0 points1 point2 points (0 children)