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.
the function "enumerate" is so cool!
Took me a few iterations to get this one liner.
i refused to admit that you guys got this solution the first time you went through
Yes, but kata solutions don't necessarily have to be efficient (unless the kata tests explicitly require them to be such).
I see. Thank you for clarifying. I've never used Python 2, so I wouldn't know. Haha!
This solution is for Python 2, and that's been already mentioned 7 years ago by runzhi214 and frankturnerv.
In other programming languages, like JavaScript, it returns a returns a new array from an original array based instructions you give it. It works similarly in Python, only the list isn't return. It iterates through a list and applies changes you've specified using a function to each element in the list, or multiple lists. I hope this helps some.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
wow, it's clever
here are few examples to simplify it:
map(int, a) --> apply int to every list object in list a to make them integers
map(str, a) --> apply str to every list object in list a to make them strings
Love it
Awesome!
they were?
reported to the FBI, have fun in jail buddy
Loading more items...