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.
did I just write the single best one liner in a kata?? cant believe myself
It`s look great
vp: vertical position, hp: horizontal position
x, y is ok too, it depends on the coder themselves
why not x, y ...?
join() function joins the elements of the list (in this case ans) together using the string (in this case empty string ''), while lower() changes all characters to lower case.
sir i am new in python may you please tell me what this is doing return ''.join(ans).lower() ?
Yes, that solution is for Python 2.
Something must have changed, this solution won't work anymore
This comment is hidden because it contains spoiler information about the solution
There are rounding issues.
ahh, I must've been blind, thanks!
count your colons! :)
This comment is hidden because it contains spoiler information about the solution
I never would have figured that out. Thanks!
Its not actually mutating the input that you're doing wrong. (JS string are immutable).
However, you are actually mutating your array when you don't mean to.
Hint: Reversing an array mutates it. You can create shallow copy with Array.slice().
Loading more items...