Error after all tests pased


Hi @richard_barigye1
Welcome to the community!

Please make sure that you used the parameters that sent to you in the function to make your code generalize
Also make sure that use the accumlative sum over all variables in the other worlds not save the values of each step in new variable that would make the round error for example

y=5.56552556+ 9.22475222
Z= X+Y # that's isn't correct
Z=2.225561+3.15214551+5.56552556+ 9.22475222
That would save the round digits

Happy Ramadan :blush:
Best Regards,

Thanks for the feedback.

I was able to solve the problem.

The problem was with the indentation of the If statement within an If statement which is in code before this line of code.