PYTHON QUESTION: List four methods of the built-in HTMLParser class. For each, s
ID: 3858626 • Letter: P
Question
PYTHON
QUESTION: List four methods of the built-in HTMLParser class. For each, specify (a) the number of parameters it takes; and (b) the types of data that should be passed to it. Do not include self.
i. Method is passed parameters:
ii. Method is passed parameters:
iii. Method is passed parameters:
iv. Method is passed parameters:
For example, let's say that you think foo is a method of this class (it is not). Then you would fill in one of the above with something like:
EXAMPLE(Use this format as what we need to fill in for i-iv "Method foo is passed 2 parameters: a string and a integer):
EXAMPLE: Method foo is passed 2 parameters: a string and an integer
Explanation / Answer
The four methods of buit-in HTMLParser class are:
1. Method feed is passed 1 paramenter: data string
2. Method close is passed 0 parameters
3.Method handle_data is passed 1 parameter : data string
4. Method handle_starttag is passed 3 parameter : self refernce, tag string and attrs array of strings
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.