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.
What
join()
basically do is it takes all items in an list/array and joins them into one string separated by the whatever character you have specified in between the' '
in''.join()
.Sometimes it can be an empty string which means all the items in the list will be joined and there will be no spaces in between them as shown in the code above you have shared.
For example :