Source Code:
(back to article)
>>> numbers = [1, 2, 3, 4] >>> numbers_str = ' '.join(str(n) for n in numbers) >>> print(numbers_str) '1 2 3 4'
Result:
Report an issue