🔵 🔵 🔵


Primary

၊၊||၊|။

str.join() ⚬|Documentation|1st|20251021203852-00-⌔

Built-in Types — Python 3 documentation#str.join

str.join(iterable,/)

Return a string which is the concatenation of the strings in iterable. A TypeError will be raised if there are any non-string values in iterable, including bytes objects. The separator between elements is the string providing this method. For example:

>>> ', '.join(['spam', 'spam', 'spam'])
'spam, spam, spam'
>>> '-'.join('Python')
'P-y-t-h-o-n'

See also split().

Printed 2026-06-28.

(echo:: @ )

Link to original

Secondary

• • •