+ 1
Can anyone help me find the problem in my code
When I return a variabele in the base case of my recursive function, it does not receive the value and receives None instead. Here is the code. https://code.sololearn.com/cGe1BnU3vIgA/?ref=app
1 Answer
+ 4
Hi. You forgot to return 'count' at the end of 'calculatePaths'. If you add that, it works. You don't return anything, therefore "None" is what you get.