Error after all tests pased

C2_W4_Decision_Tree_with_Markdown


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

X=2.225561+3.15214551
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,
Abdelrahman

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.