Ad
  • Custom User Avatar

    @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 character alias_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.