def position(x, arr):
    """
    Definition
    ---
    To get the row and coloumn of an element in a 2D list

    Parameters
    ---
    x : Element to be searched
    arr : 2D list

    Returns
    ---
    row, col : indices of the row and coloumn
    """
    for i in arr:
        if x in i:
            return arr.index(i), i.index(x)
    print("Error: Zero not found in node")
    return -1, -1