Answered You can hire a professional tutor to get the answer.

QUESTION

Using python to run a program that reads an HTML file and converts it to plain text.

Using python to run a program that reads an HTML file and converts it to plain text.

Console

HTML Converter

Grocery List

* Eggs

* Milk

* Butter

Specifications

Use the attached HTML file titled groceries.html. The file contains an HTML list with these contents:

Grocery List

  • Eggs
  • Milk
  • Butter

Open the file in notepad or another text editor and review what the HTML tags look like. Note: You don't need to know HTML to do assignment, you only need to know how to replace the HTML tags (string data).

When the program starts, it should read the contents of the file, remove the HTML tags, remove any spaces to the left of the tags, add asterisks (*) before the list items, and display the content and the HTML tags on the console as shown above. 

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question