I have a wordlist that contains returns to separate each new letter. Is there a way to programatically delete each of these returns using file I/O in Python?
Edit
The most efficient is to not specify a strip value
'\nsomething\n'.split() will strip all special characters and whitespace from the string
'\nsomething\n'.split()