Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago