Read text file into a variable and replace all newlines with space using python programming
belongs to collection: Exercises for Intermediate python developers
All Answers
total answers (1)
belongs to collection: Exercises for Intermediate python developers
total answers (1)
Hint:
replace()
function to replace all newlines (\n
) with space (' '
).Solution:
replace()
function to replace all newlines (\n
) with space (' '
).