Ad
  • Default User Avatar

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

  • Default User Avatar

    i shouldn't have to deal witht this shit... seriously... all I do is copy-paste from Kata's "example arrays" and suddenly my array is a string.
    it's been 2 hours, i deleted my code 6 times, just because of this, it's not fair.... it's just not... if i were stupid and the code would be my fault, i would understand, but having EVERYTHING break because I copy-pasted the sample arrays is just not fair to my time and energy.

  • Default User Avatar

    Can someone please explain to me how the heck is this a string?
    x = [1, 2, 0, 1, 0, 1, 0, 3, 0, 1]

    The one below, is NOT a string, but the one above is a string, How is that even possible?
    x = [9, 9, 1, 9, 9, 9, 9, 9, 9, 9, 7, 4, 0, 0]

    Python, you're drunk...

  • Default User Avatar

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

  • Default User Avatar

    @akar what language is that? Looks scary!

  • Default User Avatar

    I found the solution. The function input for the variable "pin" is ALWAYS a string... I was considering it any type of input (string, float, int) because the question did not mention anything about this!
    That's is why i had special cases for 0000 as integer (for example) which would translate to 0 in a variable... Unlike "0000" which is a string and will stay that way inside a variable.

    The exercise should be more precise when asking us to do something :-/ i am not skilled enough to tell from the function itself, it needs to be inside of the exercise phrasing.

  • Default User Avatar

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

  • Default User Avatar

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