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.
It's not up to us to spoonfeed everyone every basic language feature. Why not just tell us to do the kata for you?
This comment is hidden because it contains spoiler information about the solution
As you can see in the list of available laguage versions, only SQLite is available here, it works as documented.
Same problem.
This comment is hidden because it contains spoiler information about the solution
Python final tests are locked and can't be modified anymore. You can write a solution that passes the sample and the final tests if you want (it's possible).
Maybe that particular sample test could be removed to be consistent.
number_format
returns a string to start with, read what it does here: http://php.net/manual/en/function.number-format.phpThere is a better suited function you should use in php (and in most languages).
Some explain why this doesn't work for PHP?
function twoDecimalPlaces($n){
return number_format($n, 2);
}
This is still an error in PHP.
The specifications states to do:
larger / smaller.
As Souzooka states, when $a = -1, $b = 0, it should be:
0 / -1,
but it's treating it like:
-1 / 0.
In order to pass this test, I had to check (larger != 0 && smaller != 0)