I have an array with each index being another array. If I have an int, how can I write code to check whether the int is present within the first 2 indicies of each array element within the array in python.
eg: 3 in
array = [[1,2,3], [4,5,6]]
would produce False.
3 in
array = [[1,3,7], [4,5,6]]
would produce True.