maybe you need to import math module first?
This comment is hidden because it contains spoiler information about the solution
I learned something here so thank you for your comment.
What happened was, I was using * arr as when I tried to run the program in python IDE it was throwing an error that I gave the function 8 positional arguments.
This was because I did not define the array and then use it's name (arr) to pass it to the function. Once I removed * and defined the array, then passed it, it worked.
The error messages in the tests confused me because the first sample test error message was that None should equal 6. I thought that meant that it was skipping the trigger return statement in my loop that would terminate the function, returning what result was first initialised as. I thought for some reason the return statement in the loop was not working in codewars lol
So yea, now I understand and thank you once more.
It's a problem with your code, why are you using *arr?
oh damn, so it is spelling mistakes. let me try that and I will update here lol thank you
Just read the error messages :P You misstyped some words. 'Velkmost' should be 'Velkomst' and 'Luakiamas' should be 'Laukiamas'.
I'm not positive which language you're referring to, but I assume you're referring to setting the default value. Only margin is meant to be optional. You're not required to set defaults for a and b, but you're also not tested on it as all test cases should provide a and b.