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.

  • Custom User Avatar

    I think this is clever but it's not something I would leave without comment or in production code

  • Custom User Avatar

    I forgot to check the lowercase

  • Custom User Avatar

    Hello, I'm missing how the numeric value is being checked

  • Custom User Avatar

    I liked how you used the multiple asingation making code more clear and readable instead of using list indexing