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.
yeah, been having issues all day https://status.codewars.com/
Use this:
print(f'"{n}"')
Look where the closing quote is.
In Python the error message: X should equal Y means that your code is returning the value X, and the correct answer (expected by the kata) is in fact Y.
If you put
print(n)
at the start of your code (beforecuenta = 1
for example) you will see that the test you are failing is for the input value ofn = 73567465519280238573
. Your code is producing the answer561
for this input, and the correct answer is in fact362
.I have no idea where you get
44
from, since not even your current solution is producing44
so your "test in other program" is very strange.I will give you a small hint for where you are going wrong - add another
print(n)
line just after your coden = n/2
and see if you notice something about the numbers that your code is working with.