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.
Description says:
1000 ≤ year ≤ 9000
This wouldn't take into account years that don't have 4 digits.
Ah got it, DOH!
Thanks!
Yes, as I said, that test isn't the one your code is failing it is this one:
If you print the input you'll see that.
In my local code, I pass 'Oay emporatay oay oresmay !ay' into my function, and it returns 'Oay emporatay oay oresmay !' So is this the wrong way round?
I added it later, to see if it was actually failing, it was an error from the ATTEMPT.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You're using the wrong input value there, it should be
'O tempora o mores !'
So
!ay
is wrong.Test case
What am I missing here?
What is the name of the dictionary so that i can call it in my code?
Ah, I see, the description is quite confusing to be honest. I understood the output to be the floor moved to, but it is actually the difference and direction traversed between levels.
If you travel down, you subtract
button
fromlevel
. So a test ofgoto(1, "0") == -1
.Why does one test say "0 should be -1" ?? I thought the levels begin on level 0?
Now thats learning something new!
Random test cases include lowercase and 'NoneType' characters
Loading more items...