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.
Most 7Kyu challenges are explained like dog sh**
I'm glad to hear that!
Thanks Adam! This was a long long time I spent on a kata, but I learned a lot!
Python 3 uses only new-style classes, while in Python 2 you've choice. There is no so big difference in creating between them. Read some Python's docs or look at our priceless stackoverflow.
So, I ran the same code on my computer with Python 3 and it worked as the test case expects. Codewars only has support for Python 2.7.. Any advice?
Ok, I see where is your problem now. It runs on Python 2.7; you have to read about new-style classes.
I will update description to make sure it should be in the newer style.
This comment is hidden because it contains spoiler information about the solution
No problem, but when posting mark as having spoiler. If you pass without second parameter it's like the same for our function, because it's just empty dictionary.
I'm not sure either. This is failing the test case where 'secrets' is not passed. Would it be okay if I shared the code with you?
Build, by your function, class should have methods (and props) as returned from helper function. Test cases checks that, so I wonder how did you passed through example tests?
That's the point of this Kata: to find way to generate class dynamically.
This comment is hidden because it contains spoiler information about the solution
Just make sure your function is naming new class as is passed by parameteres. This test case checks it.
Hi Adam,
It passes the 4 that I can see. WhenI hit submit, it fails with the error "New class name is incorrect: 'class_name' should equal 'new one'"
I'm not sure where to go from there..
Hi, at which test case your solution fails? Given class name with whitespace shouldn't be a problem.
Hi!
Got to the point where I pass all the sample tests and I fail while submitting. The suggested class name is 'new class'. It has a space. Is this intentional?
Loading more items...