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.
Thanks a lot, still learning python and this came as a great painkiller.
Example test harness, hope this helps:
I posted my code in a separate comment, wondered if you might be able to help me! I'm getting that same unbound error, but my methods (I thought) were bound inside my class definition. How is Codewars trying to instantiate the RomanNumerals object when they test my code?
Any idea on how the "Submit" button tries to instantiate the class object we write? Here's my code, any help appreciated!
Here are my test cases, which I pass.
my_num = RomanNumerals(1000)
test.assert_equals(my_num.to_roman(), 'M')
test.assert_equals(my_num.from_roman(), 1000)
my_num = RomanNumerals(1969)
test.assert_equals(my_num.to_roman(), 'MCMLXIX')
test.assert_equals(my_num.from_roman(), 1969)
In python, getting a NameError on the test case when it's looking for 'err'.