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 guess original tests were not so harsh
That is one of the assumptions, if Batman:[Superman] happens, since the hate is mutual, you will also receive as input Superman:[Batman]. No need to check it :D
Quick question before I pull out too much hair. Are all enemies encoded? ie if Batman: [Superman] will the input necessarily have Superman: [Batman] or do we have to check for that?
if n is anything other than an integer or integer-formatted string (e.g. '123') that is >=0, throw a TypeError
Read the problem description.
This does not correctly handle floats.
This is one of those situations where I hated my code but it worked. I knew there would be a my pythonic, cleaner solution. Thanks for showing me. I like that this site lets us learn from more advanced programmers.