Ad
  • Custom User Avatar

    Ranks can't be changed.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Kata is nice, but compaired to other 4 kyu's I've tried it is too simple. Maybe move to 5 kyu?

  • Custom User Avatar

    Thanks for lightning-fast answer. Yep, it is working perfectly now.
    So this rec function was a sub function and sub method...
    I will try to replicate it locally, it is interesting to make it work in sub case as well.

    Thanks again for awesome kata!

  • Custom User Avatar

    I looked into it, for some reason rec_test was not defined in the global scope, and so was contradicting the description:

    All functions will be defined as top level functions, or top level object methods.

    I have moved rec_test to top level, and I think that your code actually works now. Have a try and let me know if it is still broken.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Python newbie here. Very nice kata, helped me with understanding decorators.

    My solution fails both recursive test with KeyError exception. I've tried locally to feed factorial function to my solution with no problem.
    Can I have a code for "rec_test" function so I can test is locally? Or some hint on how to debug it?