I wanted to remove all occurrences of single and double apostrophes in lots of strings.
I tried this-
mystring = "this string shouldn't have any apostrophe - \' or \" at all"
print(mystring)
mystring.replace("'","")
mystring.replace("\"","")
print(mystring)
It doesn't work though! Am I missing something?