utils.py
def create_nd_array(shape):
    """create n-dimensional array filled with 0"""
    if len(shape) == 0: return 0
    res = []
    for _ in range(shape[0]):
        res.append(create_nd_array(shape[1:]))
    return res
create n-dimensional array filled with 0
create n-dimensional array filled with 0
create n - dimensional array filled with 0
def create_nd_array(shape):
    if len(shape) == 0: return 0
    res = []
    for _ in range(shape[0]):
        res.append(create_nd_array(shape[1:]))
    return res
def create_nd_array ( shape ) : if len ( shape ) == 0 : return 0 res = [ ] for _ in range ( shape [ 0 ] ) : res . append ( create_nd_array ( shape [ 1 : ] ) ) return res
create n-dimensional array filled with 0
create n - dimensional array filled with 0
"""create n-dimensional array filled with 0"""
shape