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.
Am unable to run tests. Even after resetting, I get this error:
Yeah, to be clear I did submit a proper solution before this one (just realized whilst I can still see it I'm sure if others can?)
As ideally invalid solutions would be caught by tests (but that is hard to do) I find it an interesting challenge to try and sidestep them once I've completed the challenge properly.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I'm not really sure what the
both()
function adds to this kata, personally I probably wouldn't include it. That's my opinion anywayThis comment is hidden because it contains spoiler information about the solution
I belive this has now been resolved
I believe that is all sorted now, I made them both class methods because I think that fits better. Also put in the extra check you mentioned
I have made the changes, the tests I added aren't great but i'm unsure what the best method for creating randomized tests for the methods to clear the functions.
This comment is hidden because it contains spoiler information about the solution
Thank you for the feedback.
+
but I didn't really want to overcomplicate it, it could be interesting though. Thoughts on this?My solution was using a class so I used UpperCase, do you think I should change it anyway as it is being used as a decorator? I'm not really sure what the convention would be here. I could also change my solution to just use a function instead, what do you think?
I'd love some feedback about what you think of this sort of Kata, it's quite different to others on Codewars but I found writing it quite interesting and i'd like to know what you think about solving it.
Thanks
using python how do you modify a variable in-place inside a lambda function?
There is no 'n' so it is false