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.
Another straightforward and concise code. I had two loops on mine which increased the run time. Nice one!
obviously like my solution
No,actually. after the first if statement becomes True (here 73>70), so the third if statement would be executed, and the return statement in if statement would throw the control out of the function. Hope that makes sense.
it is like my solution xd
why?
This is beautifully easy to read.
two ifs but no elif?!
Thank you Polarish, that's important!
just another "god damnit why couldn't I think of that" moment on codewars
i think this is good approach to append a '_' on odd strings, makes it more readable than trying to handle it
Why would you need the if check? Would int(1/2) not be equal 0?
List comprehension is slightly faster because it stays within the C binaries.
damn didnt know it was 7 years ago but fair play
I doubt 7 years ago chatgpt was a thing.
nice chatgpt there
Loading more items...