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.
...wow. I guess that works! That's a really interesting way to do it :D
This comment is hidden because it contains spoiler information about the solution
I made it for Python 2 a long time ago.
With python 3 it should be wrapped with
list()
This returns a filter object, try it out with list add list just before hand the filter part will work also great solution :D
Cool solution!
Ok, sorry then - I didn't try Python 2. I liked that solution but it did not work in P3. At least I learned something about "Filter"...
This solution was for Python 2, and valid at that time.
This comment is hidden because it contains spoiler information about the solution
This returns a filter object in python3, not accepted.
This was written in Python 2.7.6 (way back when Codewars only supported Python 2.7.6), so try to be less rude when you're wrong. Or all the time, really. kthxbei
wrong, now that python 3 use zip as a generator/iterator.
This comment is hidden because it contains spoiler information about the solution
You don't have to declare the type of read s, as it is given by the function type signature.
Yeah, you're right about the Codewars grouping! The main one that shows up lacks the spacing, though! I assume this was the first such solution.
Take care! :)
You mean that you'd rather have
abs (x1-x2)
instead ofabs(x1-x2)
. That's right, it would be much more natural in Haskell. In fact, I think that's what I wrote, but I think that codewars ignores white space when grouping solutions.Loading more items...