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.
Why not using a loop rather than recursion?
IMHO, any solution using recursion should be rejected.
I found this kata overly simple for a 6 kyu!
It just requires being able to use if/elif/else (or switch/case),
and being able to format a string.
Aren't these basics?
Statement should be a bit more clear about what it means by "0".
I.e. 0 and 0.0 should be moved to the end, but not '0' or False
This is ambiguous, IMHO.
Hopefully, the example make it a bit more clear, except for '0'!
Highest solution completely fails with this simple test:
Test.assert_equals(pig_it('Test!'),'estTay!')
The validation tests for this should really be improved,
and the example in the statement should be corrected.
(Typography rules in English -> no space before exclamation mark!)
In English, there shouldn't be a space before '!'.
Your proposed test should write:
Test.assert_equals(pig_it('Hello, world!'),'elloHay, orldway!')
For example, you may use re.split(...)
Wrong solution, it fails with:
Test.assert_equals(pig_it('Test!'),'estTay!')