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.
Please do not round, use comparisons with an error margin instead. This is documented.
Hi,
No random tests.
cheers
What is
a
? Apothem? Side? Perimeter?Regular hexagon or any haxagon?
The hexagon is irrelevant, the kata is "translate this formula to python".
def something(..):
, it's python specific).P.S. don't round float results, use approximate equality.
I unpublished the kata because it has many technical issues:
10643216.653600924 should equal 10643216.653600922
.@describe
and@test
decorators.Materials to read:
You can also visit Codewars Discord and one of its channels related to authoring.
Sample tests are not using test framework
No random tests
Exact duplicate
Python: sample tests should use new test framework (import/describe/it).
Description:
Test:
P.S. returning different types (int/list) is bad practice.