Why is it string.join(list) instead of list.join(string)?
It’s because any iterable can be joined (e.g, list, tuple, dict, set), but its contents and the “joiner” must be strings. For example: Using something other than strings will raise the following …
Why is it string.join(list) instead of list.join(string)? Learn More