{moderator edit - solution code removed}
I think my line of code is right but it says the “return” line is invalid, although that is the part that was given to me
{moderator edit - solution code removed}
I think my line of code is right but it says the “return” line is invalid, although that is the part that was given to me
Hello,
Sir check your braces where you define the value of s
I think you have 2 braces left unclosed
Thanks problem was fixed
Hello,
You are welcome sir
And then you get to move to the next problem, which is infinite recursion. You are calling sigmoid from within the sigmoid function. That will not end well. It is effectively an infinite loop.
Also please note that it’s against the rules to just post your code and say, in effect, “Please fix it for me”. It’s fine to just post the exception trace that you get when you run the test. It shows a little bit of source code, but is generally enough for us to provide some debugging help.