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 only thing that makes it a "challenge" is knowing the formula. A brand new coder can solve this barely knowing a language if they heard the formula once.
I agree.
The hardest 8kyu kata I've encountered yet XD
Way too easy for 7kyu imo
Thanks a lot
You are trying to write to a variable outside the scope of your function with p0 += something.
(It's bad practice to use functions to edit variables outside of your function to begin with most of the time)
By declaring pop you have a variable you can write to and do what you want with inside your function.
By now, you used 2 of 3 ways to convert a float number to an integer, the right one is the one you haven't tried.
thanx, I have already understand that I have missed that :)
during debug, I missed that I should compare with 1214 not 1200 🙂
In the description the value is 1200, yes. In the test your code fails, it is 1214.
This comment is hidden because it contains spoiler information about the solution