Question: How can I create a function in python3 that opens a user inputed html file and read it line by line? How can I create

How can I create a function in python3 that opens a user inputed html file and read it line by line?

How can I create a function in Python 3 that reads line by lline the same file created about and only outputs the heading of the html file in to a text doc file of the users choice ?Each heading should be indented like formatted below? Pleas help

My Heading

Big section of information

Smaller sub heading

Big section of information

Another heading

Big section of information

Output on txt file:

My Heading

* Smaller sub heading

Another Heading

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!