I am writing a program that includes taking a 2x2 input matrix from a file and returning the difference of the top-right and bottom-left value.
From one of the test cases, the input looks a little like this:
7 10 4 8
In this case, I would take 10 (top right) and 4 (bottom left), and then find the difference between the two (6).
Right now I am having trouble assigning variables to the numbers in the array using python. I've tried appending both lines into two lists and that didn't work.
I would appreciate it if anyone could point me in the right direction.