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
You can use a string's rstrip method to remove the newline characters from a string.
>>> 'something\n'.rstrip('\r\n') >>> 'something'