p='output/article.md' a=open(p,encoding='utf-8').read() reps=[ (" Whether it's worth trying now depends on whether you can get it, what it costs and how much checking it still leaves for you.", ""), ("Treat the figure as the vendor's own claim about drafting speed, not as an estimate of hours your team will get back.", "Treat it as a claim about drafting speed, not as hours your team will get back."), ("If you're in the EU or need to connect LumenDesk to other software, plan for now without it.", "If you're in the EU or need an API, don't count on either yet."), (" A person still makes every decision.", ""), ] for o,n in reps: assert o in a, o a=a.replace(o,n) open(p,'w',encoding='utf-8').write(a) print('ok')