XML 1 - Find the Score

  • + 0 comments
    1. def get_attr_number(node):
    2. count = 0
    3. for i in node.iter():
    4. count+=len(i.attrib)
    5. return count