(arr, depth)
* Returns the depth of an array.
      >> Example: arr=[1,2,3], depth=0, then the resulting depth will be 0
      >> Example: arr=[[1,2], [3,4]], depth=0, then the resulting depth will be 1
    :param arr:
    :param depth:
    :return:
* Returns the depth of an array.
      >> Example: arr=[1,2,3], depth=0, then the resulting depth will be 0
      >> Example: arr=[[1,2], [3,4]], depth=0, then the resulting depth will be 1
    :param arr:
    :param depth:
    :return:
* Returns the depth of an array . >> Example : arr = [ 1 2 3 ] depth = 0 then the resulting depth will be 0 >> Example : arr = [[ 1 2 ] [ 3 4 ]] depth = 0 then the resulting depth will be 1 : param arr : : param depth : : return :
def get_array_depth(arr, depth):
    """
    * Returns the depth of an array.
      >> Example: arr=[1,2,3], depth=0, then the resulting depth will be 0
      >> Example: arr=[[1,2], [3,4]], depth=0, then the resulting depth will be 1
    :param arr:
    :param depth:
    :return:
    """

    if not arr or all(isinstance(c, numbers.Real) for c in arr[0]):
        return depth
    else:
        depth += 1
        return get_array_depth(arr[0], depth)
def get_array_depth ( arr , depth ) : if not arr or all ( isinstance ( c , numbers . Real ) for c in arr [ 0 ] ) : return depth else : depth += 1 return get_array_depth ( arr [ 0 ] , depth )