You are viewing a single comment's thread. Return to all comments →
from html.parser import HTMLParser s=set() class myhtml(HTMLParser): def handle_starttag(self,tag,attrs): s.add(tag) html="" for _ in range(int(input())): html+=input() parser=myhtml() parser.feed(html) print(";".join(sorted(s)))
Seems like cookies are disabled on this browser, please enable them to open this website
Detect HTML Tags
You are viewing a single comment's thread. Return to all comments →