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.
You modified the name of the given parameter, which I wouldn't consider 1) useful and 2) good practice, especially since
str
shares its name with a function.Understood.
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
funny how everyone was thinking the same thing
didn't think of this shorter way
excellent
why name a parameter str? wouldn't this lead to confusion?
no need for space in split
it's the default value
This comment has been deleted.
It shoud not be concidered good practice because str is a built in function
Why, what's the problem? Care to elaborate?
God I never think of that...
I was so proud of my one liner...
I'm a little bit scared of the production code of the 130+ people that voted this as being Best Practice...
Loading more items...