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.
@wambitz
,The only reason this code passes is because of an error with Codewars itself. This solution does not account for any non-alphabetic first characters, it will throw a
KeyError
on the first test case that has a numeric first characteralias_gen('123', 'Pinkman')
. This code does not even get to the random test cases (which would break it for sure).I wrote the Python translation and I am very sure that if the tests were run properly (temporary Codewars issue), this solution would not pass. It's funny though how it is getting upvoted even though it is clearly incorrect.