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.
My friend, we write solutions not tests. The TESTS round answers, not solutions. What are you talking about?
to be fair, he fixed the code. It was never specified to to keep use the same module
lol
Try to avoid using the % (modulo) operator.
Try to avoid using the % (modulo) operator.
this is Python style, if you want it easier, use Basic
Hi lexxkrt.
I've noticed that you comment quite often under more or less notable solutions which don't do what is exactly specified in a Kata descritpion.
In life not all things are in perfect order (e.g. code and documentation) and to submit a solution only tests need to pass, not the description. I appreciate that you notice these inconsistencies and it will be more benefitial to submit an Issue for the Kata for someone to make it straight or improve tests yourself, so that things in description are also tested. Comments under specific solutions may not reach an author of the Kata who can improve them. Unless thats not your goal. ;)
Have a great day and make best use of your time for the benefit of the community while you're active in here. :)
Hi lexxkrt.
I've noticed that you comment quite often under more or less notable solutions which don't do what is exactly specified in a Kata descritpion.
In life not all things are in perfect order (e.g. code and documentation) and to submit a solution only tests need to pass, not the description. I appreciate that you notice these inconsistencies and it will be more benefitial to submit an Issue for the Kata for someone to make it straight or improve tests yourself, so that things in description are also tested. Comments under specific solutions may not reach an author of the Kata who can improve them. Unless thats not your goal. ;)
Have a great day and make best use of your time for the benefit of the community while you're active in here. :)
This test will not pass because it's not the test it should pass.
From test cases (I don't think it's a spoiler because it is clearly stated in the task):
but the rounded value in the test will not equal the non-rounded value in the function. For example, the test will not pass.
test.assert_equals(distance_between_points(Point(3.25678, 3.985654), Point(3.62564, 3.35444)), 0.731087)
It only states that the TEST round it's answer to 6 decimal places.
Not that you should round your answer to 6 decimal places.
Next time read carefully before spamming a forum about it.
the task was not to rewrite the function but to fix it
the task was not to rewrite the function but to fix it
condition not met. "Tests round answers to 6 decimal places"
condition not met. "Tests round answers to 6 decimal places"