Reputation: 67
I want to replace ' in a list of string using python. currently i am using a method for replacing characters as shown below, replace('+', ' ') Apparently, i cannot use the same method to replace the Apostrophe.
Upvotes: 1
Views: 497
Reputation: 1400
Just escape it.
replace('\'', ' ')