G
Size: a a a
G
ᅠ
AT
RC
КБ
E
КБ
AT
𝕬
def max_depth(d, depth=0):
return max(depth + 1 if x is None else max_depth(x, depth + 1) for x in d.values())
AttributeError: 'tuple' object has no attribute 'items'
👑️
pl
AT
AttributeError: 'tuple' object has no attribute 'items'
КБ
pl
ᅠ
КБ
E
AttributeError: 'tuple' object has no attribute 'items'
E
def max_depth(d, depth=0):
return max(depth + 1 if x is None else max_depth(x, depth + 1) for x in d.values())
K
𝕬