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.
given the instructions, no negative numbers would be passed in, so that isn't a factor in this case. But you are right!
thought this will be voted most... go for the shortest version for the sake of it... damn..
Like streuby said firing .lower() twice isn't best practice but I think we all can agree that one liner always feels good! :))
I did not know there is such a method to do that, I love your answer
when the array contains a number less than 0. the code will not work
Firing .lower() twice over s will affect performance for longer strings. this will be better done once before the return.
ahhhh, so that's how you combine it. tried few ways to combine it but failed. 's.lower takes no argument' xDD
I'm happy that there were alot of solutions like mine!
Why is it voted as best practice given there are no empty lines between functions?
Readability should count.
same
This comment is hidden because it contains spoiler information about the solution
cool, i'm not alone
@akar-0 LMAO
The Best
Because people voted for it.
Loading more items...