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.
The input is not in the error message, as I said before.
No, you got this part wrong.
Double reply so you see the updated message: it seems, indeed, that this is due to you reading the error message incorrectly.
You posted in your original message:
"59884848495583 should equal 59884848483559"
and then you said that59884848495583
is the initial value: NO this is your mistake - you are not reading error message correctly.In the statement
x should equal y
-x
is what your code is currently returning andy
is the actual correct answer.As stated earlier - you should add the following to your code:
print(n)
- now you will see what the actual input values you are being passed are.Just to be 100% clear:
You most probably read logs incorrectly, and you mistake actual values returned by your solution, with input values.
I changed the way how tests are organized to give better feedback on failure, hopefully this will make it easier for you to spot your mistake.
Of the values that you are showing, only the value
5988...
is a fixed test that we can reproduce easily.However, already you are reading it wrong - you claim the initial value is: 59884848495583
but the test is actually using input: 59884848459853
I have bolded the digits you are getting wrong.
Make sure you are reading tests correctly - also in your code, add a
print(name_of_input)
somewhere if you want to double check.Obviously, you're misreading the logs, the first value in the error message is what your function wrongly returned, not the input value. To see what it was, print it. Not a kata issue:
But you do not show anywhere what the initial value is?