I need to find the element(s) of a 2D-Array of i-th row and j-th column. I simply write T[i][j] and get correct result, but I get unintended results when I go for range of 'elements'
T = [[11, 12, 5, 2], [15, 6,10], [10, 8, 12, 5], [12,15,8,6]]
print(T[1][2])
Out[2]: 10
print(T[1:3][:2])
Out[3]: [[15, 6, 10], [10, 8, 12, 5]]
I wish to print the 2nd,3rd rows having 1st and 2nd columns, but output I got as entire 2nd and 3rd row instead.