Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2-liner: find 'em all solution in Creative category for Tree Walker by przemyslaw.daniel
def tree_walker(tree, target, re=__import__('re')):
return len(re.findall('(?! :)%s[,\]\}]' % re.escape(str([target])[1:-1]), f'{tree},'))
Dec. 3, 2019