Question: Radio Edit Write a python program that has three files: lyrics.txt - the lyrics to your favorite song main.py - your main program clean.txt -

Radio Edit

Write a python 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)

Sample lyrics.txt

Happy Birthday to you

Happy Birthday to you

Happy Birthday to you-ou

Happy Birthday to you!

Sample program input/output

Please enter the word to find? Happy

Sample clean.txt

***** Birthday to you

***** Birthday to you

***** Birthday to you-ou

***** Birthday to you!

Total: 4

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!