You are viewing a single comment's thread. Return to all comments →
def get_attr_number(node): n = 0 if len(node.attrib) !=0: n+= len(node.attrib) for child in node: n +=get_attr_number(child) return n
Seems like cookies are disabled on this browser, please enable them to open this website
XML 1 - Find the Score
You are viewing a single comment's thread. Return to all comments →
def get_attr_number(node): n = 0 if len(node.attrib) !=0: n+= len(node.attrib) for child in node: n +=get_attr_number(child) return n