iterable_depth#

iterable_depth(o)#

Return the depth of iterable object, e.g. iterable_depth([1, 2]) = 1 and iterable_depth([(1,2)]) = 2.