Python - join()
Code Life
By Pierre Marsaa
What is join()?
join() is the opposite of split(). It combines a list of strings into a single string, with a separator between each element.
↗️
Loading editor...
↶
↷
Notice the syntax: the separator calls .join(), not the list! This is a common source of confusion.
Verify