Now I have two 2D arrays, I want to compare
['A','B','E','G', 'T']
& ['A','C','E','N','M']
['a','f','c','h','u']
& ['a','b','c','y','l']
and calculate the same elements.
aaa = [['A','B','E','G','T'],['a','f','c','h','u']]
bbb = [['A','C','E','N','M'],['a','b','c','y','l']]
So in this example, the output is 2+2
I know how to do if it's a 1D array, but don't know how to do this with 2D arrays. Many thanks.