Python Array Delimiter Concatenation String

Concatenating Arrays into Strings with Delimiter in Python

How to concatenate a list (array) with a delimiter into a string in the Python programming language.

Shou Arisaka
1 min read
Nov 20, 2025

How to concatenate a list (array) with a delimiter into a string in the Python programming language.

"\n".join(['I', 'would', 'expect', 'multiple', 'lines'])
# => 'I\nwould\nexpect\nmultiple\nlines' # `\n` is rendered when you print()

Share this article

Shou Arisaka Nov 20, 2025

๐Ÿ”— Copy Links