str.join()
str.join(iterable)
Takes all items in an iterable (array, list, etc.) of string and joins them into one string, separated by the string it is called on.
- Input:
- iterable : iterable
- Required. A sequence of strings.
- Returns:
- The joined string.
- Return Type:
- String
"".join(["pandas", "are", "the", "best" ])
"pandasarethebest"
"#".join(["pandas", "are", "the", "best" ])
"pandas#are#the#best"
Problems or suggestions about this page? Fill out our feedback form.