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.
Thanks a lot. It helped. I got idea, probably it is that beings are not floats
This comment is hidden because it contains spoiler information about the solution
See the example in the description and you'll find out what you're doing wrong there. The test is fine.
This comment is hidden because it contains spoiler information about the solution
I have the same problem. Here is the results of calculation
input
p0 -1000, %- 2.0, aug - 50, p - 1214
Output
1070.0
1
1141.4
2
1214.228
3
Calculation (manual)
p % aug
1 year 1 000,00 0,02 1,02 50 1 070,00
2 year 1 070,00 0,02 1,02 50 1 141,40
3 year 1 141,40 0,02 1,02 50 1 214,23
You may want to play around with Math.ceil and Math.floor ........
input
p0 -1000, %- 2.0, aug - 50, p - 1214
Calculation
1 year - 1000.00 * 1.02 + 50 = 1070.00
2 year - 1070.00 * 1.02 + 50 = 1141.40
3 year - 1141.40 * 1.02 + 50 = 1214.23
output
1070.0
1
1141.4
2
1214.228
3
Desired value - 1214, we get 1214.228 in 3 years
How it can be 4 years? That is the question
In 4 year the value will be 1 289,51
This comment is hidden because it contains spoiler information about the solution
Great, I lke it
To me, this is the best practice.
It turns out
First, we define an empty list as a dictionary value.
And then, we add values to the list using the append function.
great idea with reverse method, thanks
Do we need to make a pattern for the test results? That is, if the string in the test is "aaacccddd" and the result is False, then the pattern should be something like r"efg"?
I didn't know that the method could be applied like this. Thanks for the code
Thank you both for the code and the explanation
Loading more items...