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.
I approved the translation, thanks a lot!
Unfortunately, your code is too long because of the "for". in this problem it is enough to come up with a formula that allows you to pass all the tests :)
I have never worked with tests to check for raising errors, how can I in a random test where an error will return, check a function for correctness without knowing that an error will return
I tried to introduce error raising in tests, but in random tests it is impossible to predict whether an error will raise or not, so I decided in case of an error to return "Error!" as it was before
You suggest instead of "Error!" to return ValueError or what do you mean by raise an exception?
If the variable uses only lowercase letters it won't matter if it's java or c++, because the output will be the same. This can be seen in the basic tests by the example edit_language('life') returns 'life'
I think then it will be easier for those who will solve the problem to return "Error!"
Okay, I thought about it and changed
"Error!"
toNone
, thanks for the adviceI think it would be better if the function returned only a string data type. And the "!" symbol will help to differentiate the "Error" variable from the "Error!".
Thank you, I corrected that mistake.
Thanks for the note, fixed it (added the condition to the kata description)
thanks
No, I fixed
Before:
After:
okay, fixed
okay
Loading more items...