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.
First rule of Regular Expressions - if have more simple use string method, then use more simple method than regular expressions =^)
for me its not readable at all ! xD
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
So THAT'S how to squeeze it onto one line! Niiiice :-)
Even though it's asking to rewrite the code, this is easier to understand, uses fewer lines of code and is simpler. In my opinion, this is a perfect solution since it teaches you what is most efficient instead of just doing what the problem asks.
I knew someone would have it done concisely on one line; nice!
This comment is hidden because it contains spoiler information about the solution
the task was not to rewrite the function but to fix it
I didn't realize that was an option, I really like the way you can chain those
This is clever, but not so intuitive in my opinion.
But I'm just getting started with Python and programming in general, so I might change my opinion further down the rabbit hole!
yes, this kata only asked to fix the bug in the code. not rewrite the entire code.
Hello,
from what I understand, if (number % a > 0 or number % b > 0) it will return False because then that is some value.
number % a here is equals to number % a > 0.
so, the program returns True if number % a and number % b DO NOT have any values( because then they are of value 0 )
this is literally not the purpose of this ex I guess
Again?
Loading more items...