Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN PYTHON ONLY Write a program that has three files: lyrics.txt - the lyrics to your favorite song main.py - your main program clean.txt -

IN PYTHON ONLY

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)

SAMPLE OF PROGRAM

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

Step: 3

blur-text-image

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions