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.
Infinite cycle in case of small percent and negative aug, e.g.
p0=1000, percent=1.0, aug=-100
Nice kata, but there are 2 problems with it:
Let assume you receive 50.5 after calculation - its 51? or 50?
Hello! Your proposal looks ok. However, I saw more tests in original solution.
What about adding some random tests to your translation?
One problem with this solution - appending to new_s is not perfectly optimal, because strings in Python are immutable and every time you need to reallocate memory when adding next char or ' ' to new_s.