Replace text in files

 


with open("Non.txt") as f:
c=f.read()
c=c.replace('gandu','#$$$%#')
with open("Non.txt",'w') as f:
f.write(c)

Comments

Popular posts from this blog

React Installation with Vite and Tailwind css (Steps to Installation)

Insert Data In mongoDb

Class methods as an alternative Constructor