Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
max(iterable, default=0) solution in Clear category for How Deep by David_Jones
def how_deep(structure):
if type(structure) is tuple:
return 1 + max(map(how_deep, structure), default=0)
return 0
June 18, 2019