Question: In Python Form: 2) Write a script called censorfile.py that asks the user to enter a taboo word and then a filename. The script should
In Python Form:
2) Write a script called censorfile.py that asks the user to enter a taboo word and then a filename. The script should then open the file and print it line by line, but replacing any line that has the taboo word in it with a censorship message (such as: ***LINE REDACTED***). If the file doesn't exist, the script should repeatedly ask the user to enter a different filename.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
