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.
Don't use
input
as paramenter name in Python - it's a builtin function to read keyboard inputs! Please rename it todata
or something like that.Please use a fixed-width font for the output window. Currently, it is extremely hard or impossible to e.g. see multiple spaces in an output string for debugging, except if I replace them e.g. with dots before printing.
This comment is hidden because it contains spoiler information about the solution
The Python unit tests are wrong!
You have to type:
instead of:
And your final python test cases are not well designed. It depends on the
import string
statement in the solution code, which I tried to replace with afrom string import ...
that lead to the failing of your tests.Would be nice if you could predefine and include the dictionary in the test environment, so that we don't have to copy it to the solution code.
No, I think it isn't. Either my solution is wrong (then please point the error out to me) or try< to correct/clarify your tests. I otherwise get errors like "0L should equal 0.0023766928765123672876" or something like that...
I am not very happy with the description for Python. You should write a separate one for this as it is very confusing that you call your custom class List while there is the builtin list, which equals your array you want returned.
This comment is hidden because it contains spoiler information about the solution
Your test cases are full of spelling mistakes... Like ---"dectionary"--- instead of "dictionary", ---"undifined"--- instead of "undefined", etc. And
[]
is not called "Array" but "List" in Python.This comment is hidden because it contains spoiler information about the solution
Unfortunately, I forgot to remove the print statement for debugging before hitting on "Final Submit"... >.<
Yes, some time after having posted this, I saw that I missed a closing bracket somewhere in my code... I am sorry.
The unit tests fail:
You should really improve the description. One can only find out from the test cases that you expect the function to return a dictionary with the elements of the array as keys and their number as values.
I would make the description about the output for a given list of multiple names more clear. One could also think to return a concatenated string instead of a list of strings.
Loading more items...