Ad
  • Default User Avatar

    You're only asked to return True if n is a digit, which is what the solution does. Nowhere in the kata description does it say you have to use regex.

    I would argue in any case that it's better practice to use built-ins for this instead of bringing in the overhead of the regex library where it's not required.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution