HackerRank HTML Parser – Part 1 solution in python
In this HTML Parser – part 1 problem You are given an HTML code snippet of N lines. Your task is to print start tags, end tags, and empty tags separately. Problem solution in Python 2 programming. from HTMLParser import HTMLParser # create a subclass and override the handler methods class MyHTMLParser(HTMLParser): def handle_starttag(self, tag, attrs): … Read more