def diagonalDifference(arr):
    x = 0
    y = 0
    minus = -1
    primeDiag = arr[x][y]
    secDiag = arr[-1][0]
    while x <= len(arr):
        while y <= len(arr[x])-2:
            primeDiag = primeDiag + arr[x+1][y+1]
            secDiag = secDiag + arr[minus-1][y+1]
            minus-=1
            x+=1
            y+=1
            diff = abs(primeDiag - secDiag)
        return diff
arr = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]
#arr = [[-1, 1, -7, -8],[-10, -8, -5, -2],[0, 9, 7, -1],[4, 4, -2, 1]]
print(diagonalDifference(arr))

5de94404bcb2a5fcb49d4ea4fd66f8d6ed240ea8
<mask token>

def diagonalDifference(arr):
    x = 0
    y = 0
    minus = -1
    primeDiag = arr[x][y]
    secDiag = arr[-1][0]
    while x <= len(arr):
        while y <= len(arr[x]) - 2:
            primeDiag = primeDiag + arr[x + 1][y + 1]
            secDiag = secDiag + arr[minus - 1][y + 1]
            minus -= 1
            x += 1
            y += 1
            diff = abs(primeDiag - secDiag)
        return diff


<mask token>

def diagonalDifference(arr):
    x = 0
    y = 0
    minus = -1
    primeDiag = arr[x][y]
    secDiag = arr[-1][0]
    while x <= len(arr):
        while y <= len(arr[x]) - 2:
            primeDiag = primeDiag + arr[x + 1][y + 1]
            secDiag = secDiag + arr[minus - 1][y + 1]
            minus -= 1
            x += 1
            y += 1
            diff = abs(primeDiag - secDiag)
        return diff


<mask token>
print(diagonalDifference(arr))

def diagonalDifference(arr):
    x = 0
    y = 0
    minus = -1
    primeDiag = arr[x][y]
    secDiag = arr[-1][0]
    while x <= len(arr):
        while y <= len(arr[x]) - 2:
            primeDiag = primeDiag + arr[x + 1][y + 1]
            secDiag = secDiag + arr[minus - 1][y + 1]
            minus -= 1
            x += 1
            y += 1
            diff = abs(primeDiag - secDiag)
        return diff


arr = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]
print(diagonalDifference(arr))

def diagonalDifference(arr):
    x = 0
    y = 0
    minus = -1
    primeDiag = arr[x][y]
    secDiag = arr[-1][0]
    while x <= len(arr):
        while y <= len(arr[x])-2:
            primeDiag = primeDiag + arr[x+1][y+1]
            secDiag = secDiag + arr[minus-1][y+1]
            minus-=1
            x+=1
            y+=1
            diff = abs(primeDiag - secDiag)
        return diff
arr = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]
#arr = [[-1, 1, -7, -8],[-10, -8, -5, -2],[0, 9, 7, -1],[4, 4, -2, 1]]
print(diagonalDifference(arr))
