Python membuat string satu baris
s = "a\nb\nc\nd\n"
t = str.join(" ", s.splitlines())
#output "a b c d"
Tough Tarsier
s = "a\nb\nc\nd\n"
t = str.join(" ", s.splitlines())
#output "a b c d"