I have following list:
mylist = ['Hello,\r', 'Whats going on.\r', 'some text']
When I write "mylist" to a file called file.txt
open('file.txt', 'w').writelines(mylist)
I get for every line a little bit text because of the \r:
Hello,
Whats going on.
some text
How can I manipulate mylist to substitute the \r with a space? In the end I need this in file.txt:
Hello, Whats going on. sometext
It must be a list.
Thanks!