Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i = True
- words = {"test","Hi","Hello"}
- with open("yes.txt","r") as f:
- f = f.read()
- f = f.casefold()
- for i in words:
- i = i.casefold()
- if i in f:
- f = f.replace(i,"@#$&*%")
- with open("yes.txt","w") as d:
- d.write(f)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement