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.
Note that
math.ceil()
already returns an integer... The cast made withint()
could be seen as redundant... Great solution by the way :PVery easy with python !
This comment is hidden because it contains spoiler information about the solution
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:
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.
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.
arr[len(arr] - 1]
This comment is hidden because it contains spoiler information about the solution
When trying to attemp the kata the simulation throws syntax errors involving the tests... I have tried doing it in Python.
@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.
@lilsweetcaligula
I believe it is already marked as an spolier. Thanks again!
@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.
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!
This comment is hidden because it contains spoiler information about the solution
@pcolladosoto
Could you please post your solution here and check the "Mark as having spoiler content" box? I'll take a look.
This comment is hidden because it contains spoiler information about the solution
Loading more items...