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.
No problem if the code doesn't print anything. All tests can pass.
Same thing happened to me :( It's annoying.
Would that be considered best practice or is it impractical, since it removes the "logic" that we used, which can make it harder to read.
In Python 3, 3/2 gives the float 1.5.
But you need the rounded down integer of the division.
This is 3//2 and gives the integer 1.
All you have to do if you are in Python 3 is to change / to //.
This solution works only for python 2. In python 2 when int number divides another int we get int rounded down number. In python 3 we would see float type number.
For example:
3/2=1 - round down and integer type (python 2)
3/2=1.5 - float (python 3)
Also, for making a float number in python 2 you need add a dot at the end of the code (ex. 3/2.=1.5)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
passed 2 tests, but the 3rd one says "() takes exactly 1 argument (5 given)"
Perhaps your code has run into an infinite loop that keeps printing.
I brought down the size of the test cases. Let me know if that helps.
i passed like 34 tests but it says "Max Buffer reached: Too much information has been written to stdout"
This comment is hidden because it contains spoiler information about the solution