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.
I like this one, cool format.
Thanks; I learned a new format specifier.
clear explanation @mortonfox thanks for that!
It does, doing
' '.join
will return its original whitespaces (separator of the values).str.split
separates the substring into values inside a list. i.e:It'd be different if you leave the args as default tho
but wouldn't it join all the spaces together with an added space?
I'm a bit confused. Doesn't split(" ") take away spaces?
Because the solution is using
' '.join
I'm confused. How does this copy over the extra spaces? When you use split(" ") doesn't it mess up all of the spacing?
Nice!
Nice!
Nice!
Awesome!
i did some research and realized that python doesnt seem to have a swithc case
It does now!
What’s New In Python 3.10:
https://docs.python.org/3/whatsnew/3.10.html#pep-634-structural-pattern-matching
Not supported by codewars though
I'm weak
Amazing!
its incredible!
Loading more items...