why reinventing the wheel again
i think I'll frame it and put it on the wall
could someone help to explain why this is executed differently than the above solution?? Thanks.
for i in l:
if not isinstance(i, str):
Also, why not using remove() to remove the string from the list?
Nope see the comments below :)
Does this work on Python 3.8?
ohh nice arrow function as well
Because it needs at least Node 15.0.0
why .replaceALl() method doesnt work?
Math.abs(0) returns a number so adding - to a number 0 won't change it.
This code doesn’t work
From a "code golf" perspective, this indeed is a good solution. Anyway, though I like codewars very much, I find it frustrating how top-voted solutions are always the shorter solution. I rarely see on top readable solutions or optimized solutions. But those two points should be far more critical for a professional coder than the length of the code.
Makes mine look verbose to the extreme.