You are viewing a single comment's thread. Return to all comments →
Python3
maxdepth = 0 def depth(elem, level): global maxdepth # your code goes here level += 1 if level >= maxdepth: maxdepth = level for child in elem: depth(child, level)
Seems like cookies are disabled on this browser, please enable them to open this website
XML2 - Find the Maximum Depth
You are viewing a single comment's thread. Return to all comments →
Python3