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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!