I want to replace newline character
With space in python.
How to replace newline with space in python?
Its easy in python.
You can use the replace method of the string to performance replace operation.
Here is code example:
string = string.replace("\r","") string = string.replace("\n","")