• Custom User Avatar

    Note that math.ceil() already returns an integer... The cast made with int() could be seen as redundant... Great solution by the way :P

  • Custom User Avatar

    Very easy with python !

  • Custom User Avatar

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

  • Custom User Avatar

    That happens when your code isn't right (the tests are added to the end of your code). For instance, deleting pass in the initial code and clicking run sample tests, will give you this:

    File "<string>", line 11
        Test.assert_equals(feast("great blue heron", "garlic naan"), True)
           ^
    IndentationError: expected an indented block
    

    Because all that text didn't enter in one line you see the caret pointing at the space you mentioned. Hope it helped clarify why it happened.

  • Custom User Avatar

    I'm deeply sorry, this "arr[len(arr] - 1]" was a typo... I have submitted the same code that caused the error and it worked flawlessly now... I therefre cannot quote the error, but it involved a syntax error in ine of the sample tests. From what I can recall, the error ocurred in the space between "garlic" and "naan" in the following line: "Test.assert_equals(feast("great blue heron", "garlic naan"), True)". It is not much help, but that's all I remember... Sorry for the incovenience.

  • Custom User Avatar
    • what's the error message exactly?
    • check that you didn't forget to close parenthses somewhere. EDIT: found: arr[len(arr] - 1]
  • Custom User Avatar

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

  • Custom User Avatar

    When trying to attemp the kata the simulation throws syntax errors involving the tests... I have tried doing it in Python.

  • Custom User Avatar

    @pcolladosoto

    You are welcome. Please do feel free to ask more questions if such arise in the process. I'm sure most C fans here including myself will be glad to help you.

  • Custom User Avatar

    @lilsweetcaligula

    I believe it is already marked as an spolier. Thanks again!

  • Custom User Avatar

    @pcolladosoto

    Thank you, we've all been there. After all, I think we are all beginners in some domain.

    Could you please mark your solution as having spoiler content? I'll reply what's wrong with the code in the next post.

  • Custom User Avatar

    Hi @lilsweetcaligula;
    Thanks a lot for taking the time to look into my code. It really helps a lot and I really appreciate it. Thanks for encouraging us beginnners!! You rock!

  • Custom User Avatar

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

  • Custom User Avatar

    @pcolladosoto

    Could you please post your solution here and check the "Mark as having spoiler content" box? I'll take a look.

  • Custom User Avatar

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

  • Loading more items...