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.
Ok, I'm still not totally convinced but I've already made the corresponding adjustments and passed the tests. Thanks for your comments!
"In the last basic test i get this error:
IN: 1000 2.0 50 1214 Year 1: 1070.0 Year 2: 1141.4 Year 3: 1214.228
3 should equal 4"
The instructions state the following: "the function nb_year should return n number of entire years needed to get a population greater or equal to p."
So even if I do not consider the decimals in the test I get the error, the result of year 3 already reaches the target quantity "p" that is received as a parameter. Where is the error?
I have the same error that @Xeferis mentions, when I click on the "Attempt" button I get the same message: "expected 3 to equal 4" but I don't understand why.
Great solution!