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.
Bro, I tried the same thing but they showed me error! donno why!
Thanks. I see.
The input can't be 13.
What if the input is 13? Then it doesn't even work. How can this be top solution? :D
I appreciated:
Very clear!
The last
if
is not really necessary, simplyreturn n-2
would do.But of course, "explicit is better than implicit", so the solution is good as is ;-)
FYI: Instead of
True if condition else False
you can writecondition
or (if condition is bool-ish and you need a boolean type)bool(condition)
.