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.
Nice, Kata. Just done, made me think a little bit. And thanks for changing the description. Continue your work you´re making it very well. Thanks again.
Ok, ok. Now I understand. I will try it. Thanks again.
Sorry, i simple don´t understand the kata. What should I do?
The description says we should find the smalllest number, but the smallest number is always a mono numeric number.
I know i lost something in the description, but I don´t know what, maybe its in the translation to my language, but really I don´t know what do you want.
Sorry
In the other hand, thanks for making katas for people like me.
I think something fails on the kata with Python:
I just print the numbers out.
and see the error:
def two_sum(numbers, target):
return print(numbers)
STDERR
Traceback (most recent call last):
File "/workspace/default/tests.py", line 3, in
test.assert_equals(sorted(two_sum([1,2,3], 4)), [0,2])
TypeError: 'NoneType' object is not iterable
don´t worry, it has a mistake in python, they are trying to solve the problem. Give them some days.
OK, thanks for your work, sorry the forms. With the problem I have learned a lot about iterators, jaja. Thanks for that.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Sorry its True, my fault.
Traceback (most recent call last):
File "main.py", line 4, in
Test.assert_equals(persistence(39), 3)
File "/home/codewarrior/solution.py", line 6, in persistence
n = math.prod(b)
AttributeError: module 'math' has no attribute 'prod'
this code works good in other terminal.