Question: Write a program that has three files: lyrics.txt - the lyrics to your favorite song main.py - your main program clean. txt - the output
Write a program that has three files:
lyrics.txt - the lyrics to your favorite song
main.py - your main program clean.
txt - the output 'clean version' of the song
Imagine your favorite song has explicit lyrics. Your program should allow a user to specify a word to be removed from your lyrics file and print out a new version with the bad word redacted with *****. At the bottom of the file it should say the total times the word was redacted. You can find the lyrics to your favorite song online and copy them in the file lyrics.txt (DO NOT USE THE BIRTHDAY SONG)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
