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.
pretty sure the main objective is in the title of this kata - otherwise using the modulo operator kinda defeats the purpose of this exercise
nice and working answer however surely using variable "n" isn't really necessary as you can just use return number to make things less complicated. Then again this is Kyu 8 lol
Rounding numbers up is a bad idea; depending on the order of operations floating point errors can cause problems.
Python: Input parameter should be named something else:
input
is a built-in function.It is the duty of the Kata author(s) to enforce any rules in the test cases
you should obey the rules!!
Translating a string is a duplicate to many katas.
Multiply :O
Please see this tutorial, bullet point 1.2 in the linked paragraph.
No need to sound so contrite/apologize so much. Unless you're Canadian. In which case: apology accepted. :p
There's only so many (array) methods to choose from, all of which have been explored on Codewars exhaustively.
If the challenge has to be novel and/ or unique, there's no way an 8 or 7 kyu kata will be published ever again.
"Not a novel idea" can't therefore be a reason to reject Kata's. Sometimes the fun is in translating 'real life' puzzles into code. As it is in this case. A simple, but solid 7kyu.
This is, of course, entirely my humble opinion.
Sorry about that, I got rid of the extra integers. The part with the math module is just to tell users that there's another way to solve, but I see where it's confusing so I removed it.
Sure. Although now, after re-reading the description, I can't help but notic how often you use the term "integer". Especially this bit
Yes. You've stated that. Repeatedly. :P
At this point I'm just nitpicking. But I did not mean to tell you to remove the bit about not using the math module. If that is the inteded purpose of this kata, then that's totally fine to leave in there. But only if.
I fixed it. Does it make sense now?
This comment is hidden because it contains spoiler information about the solution
Okay, then can you show an example of a kata similar to this one, if this isn't a novel kata?
Loading more items...