Ad
  • Custom User Avatar

    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.

  • Custom User Avatar

    Ok, ok. Now I understand. I will try it. Thanks again.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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

  • Custom User Avatar

    don´t worry, it has a mistake in python, they are trying to solve the problem. Give them some days.

  • Custom User Avatar

    OK, thanks for your work, sorry the forms. With the problem I have learned a lot about iterators, jaja. Thanks for that.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Sorry its True, my fault.

  • Default User Avatar

    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.