Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python make string one line

s = "a
b
c
d
"
t = str.join(" ", s.splitlines())
#output "a b c d"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #string #line
ADD COMMENT
Topic
Name
6+9 =