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.
This comment is hidden because it contains spoiler information about the solution
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.
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...
This comment is hidden because it contains spoiler information about the solution
@akar what language is that? Looks scary!
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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution