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.
As far as I can tell, you should be giving exact solutions. If you have these small differences and are using floating point numbers in your solution, they are probably the source of the problem. Try to do it without floats!
not possible anymore :)
Fixed.
I've kumited a "fix".
This is indeed caused by the way the tests are written. The random tests use "from datetime import datetime". So if you use "import datetime" in your code, when the random tests run, "datetime" is changed to mean not the datetime module, but the datetime.datetime class. So "datetime.datetime" is interpreted as "the datetime attribute on the datetime.datetime class" (which does not exist).
This can be avoided by either using "from datetime import datetime" in your own code or by using an alias (e.g., "import datetime as datemodule").
"You solution should" => "Your solution should"
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Had the same issue. Had to wrap it in a try/except block specifically for the random tests to strip off the first "datetime". I have no idea why the random tests are doing that, but this seems like it's an issue with the way the tests are written.
I've updated it to
12–13: The first two initials of the first name and middle name, padded with a 9 if no middle name
I agree, first two names was a little confusing :-)
This comment is hidden because it contains spoiler information about the solution
Happy coding
^_^
You're right, sorry. That was from an early miss calculation :-). Description updated, thanks for letting me know.
Loading more items...