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

Healthy Programmmer PROJECT

Difference Between Procedural and Non-procedural Language

Dictionary Practice Question