This was a great learning experience for me thanks
I would recommend reading up on higher order functions
It's a recursive function
The arguments continue to get smaller as the function is continiously called
until it reaches the base case, being if len(word) <=1: return [word].
then the function continually returns the results, until it passes out of the for loop.
Loading collection data...
This was a great learning experience for me thanks
I would recommend reading up on higher order functions
It's a recursive function
The arguments continue to get smaller as the function is continiously called
until it reaches the base case, being if len(word) <=1: return [word].
then the function continually returns the results, until it passes out of the for loop.