Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You have an error in
unsubscribe
method, it does not remove the corresponding functions correctly because you are missing one argument to a particular function which by default will be0
.My code passes all the tests except the last also, with an IndexOutOfRangeException, which appears to be coming from the Sample Tests.
I too am having this issue. I pass all the test but get a STDERR about the index being out of range despite the numerous testing I did in XCode all came back positive. Not sure if this is a bug or if I am actually doing something wrong.
ahhh my code does not pass it gives me an error after passing all tests. I am a beginner my code may not be very pythonic in nature but to pass this challenge I am sure it is flawless, IndexError out of range is what is being thrown
Very close! In fact your test revealed a small flaw in the spec that I just fixed. If the return value of the constructor is a function, it should return the function — not the result of calling the function.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Much better, greenlit :D
This comment is hidden because it contains spoiler information about the solution
It's a CW problem, the kata has a lot of tests. Report that at CW as a bug: https://www.codewars.com/topics/bug-reports.