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.
=DDD
My point is that there is no module restriction, you can import whatever module you like, as long as it is installed. But not every module ever created is installed.
Your solution works in Pycharm because you have the module
inflect
installed, but it is not installed in Codewars. The Python runner in Codewars only uses built-in modules as well as a small list of additional packages, which does not includeinflect
. You will have to solve the task yourself, just like everyone else :)true.I did it the same way as you did. work perfectly in pycharm
This comment is hidden because it contains spoiler information about the solution
Your code returns a string, which is incorrect.