Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started