Python - join()
📖 Read the lesson
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...
↶
▶️ Run
↷
Notice the syntax: the
separator
calls
.join()
, not the list! This is a common source of confusion.
Verify