Skip to content

Commit

Permalink
Python XML!
Browse files Browse the repository at this point in the history
  • Loading branch information
snehalmastud authored Feb 23, 2020
1 parent 547fec4 commit 9c24227
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions XML/XML 1- Find the Score/Solution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

def get_attr_number(node):
return len(node.attrib) + sum(get_attr_number(child) for child in node);

0 comments on commit 9c24227

Please sign in to comment.