with open("textfile.txt", 'r+') as fin:
text = fin.read()
fin.write(text.replace(" full stop ","."))
fin.write(text.replace("New Paragraph","\n \t"))
I want to add punctuation in the file. e.g. replace the words "Full Stop" with the actual punctuation mark "." and "New Paragraph" with " \n\t ". The code is not giving any error but it is not replacing any string