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.
This comment is hidden because it contains spoiler information about the solution
Ok. All of you are rigth. I sugesst more the one test of this case.
No. Propblem is still valid. I checked a few sek ago.
this:
test.assert_equals(single_digit(5), 5)
should be this:
test.assert_equals(single_digit(5), 2)
One wrong test. I'm afraid.
Test.it("should return None, if n is already taken and no two digit solutions can be found")
Test.assert_equals(generate_number([1,2,3,4,6,9,10,11,15,18,27,29,34,36,38,45,47,54,56,63,65,69,72,74,81,83,92], 9), None)
9 is taken but 90 is not into squade so result should be 90 not None (or rather include 90 into squad).
In Python functionn is supposed to return list of tuples but there is list of list in description.
You have to decide:
Nice idea. Easy exemple for recursion. So I voted for solution 1.
You'r right. Problem exist in Python version. Sorry for not mention this.
In Python tests cases chacking usage of filter function show info: "Use filter function: False should equal True", which not true at all and filter function were used.
Test in Python do nothing.
Pseudcode examples are simple coments so there are no simple tests at all.
There are not random tests.
Python translation of : Terminal game combat function.
It stand in descripton: "Return True if you're better, else False!"
But first basic test in Python indicate you mean:
"Return True if you're better or equal, else False!:
I.m afraid it is duplicate:
https://www.codewars.com/kata/find-the-gcf-of-two-numbers/python
exactly :
'make_sentences' in tests (and description)
'make_sentence' in script
Loading more items...