Clear and simple!
I forgot you can split them. I think I'm too used to regex lol
If I log out the input array after the method has run, I get the same as before, i.e. the input is not changed.
Off-by-one errors have claimed millions of lives. 😅
This just proves how crap this Kata is...
Oh, shit!, I had no idea for the second argument in the int function. The use of the map is perfect.
I believe it isn't
When I run this code, I get a TypeError exception:bad operand type for abs(): 'generator'
Is this to do with Python 3+?
Hey, it's cool and too short. Congrats!
what the hell is this???
I like this.
clever? maybe for this question but what will you do if you need to move 15 characters or 5 characters instead of 10🤷♂️ it's hard to create two array like this for all situations. my point is this code is not reproduceable!
I have the same question, I'm guessing it has to do with coercion but I don't think I get it. Did you happen to figure it out?
In Python 3, the result of the / operator (known as truediv) is a float, but the result of // (known as floordiv) is already an int and rounding it will have no effect.