Python str.join() Method
The join() method takes all items in an iterable and joins them
into one string. A string must be specified as the separator.
Syntax
string.join(iterable)
Parameters
| Parameter | Description |
|---|---|
iterable |
Required. Any iterable object where all the returned values are strings |
Return Value
A string.
Example
Using the join() method:
Output
Click Run to execute your code
Enjoying these tutorials?