You need to return the recursive call to your function. Your code works for 15, but it doesn't when you have to use recursion. In the error message "15 should equal 6", it doesn't mean the input value was 15, it means your function returned 15 instead of 6.
ohh ok that makes sense, ty
You need to return the recursive call to your function. Your code works for 15, but it doesn't when you have to use recursion. In the error message "15 should equal 6", it doesn't mean the input value was 15, it means your function returned 15 instead of 6.
imma be honest my code doesnt actually work all the way but it still does put 15 as 6 in pycharm no idea why i get that many errors here
also i searched how to do recursions and man i have no idea that codes like the best i understood from it
That's a problem with your code, not a kata issue:
You're doing recursion wrong.
my code works perfectly on pycharm, 100 fails when i put it on here.
"15 should equal 6" even though it literally does