I have multiple 2-D arrays as defined below:

a=[[4,6],[7,8],[9,10]]

I want to create a separate array(1-D) that takes the maximum number between the two elements in the array above. The solution should look like the below:

a=[6,8,10]

Any suggestions would be helpful. Thank you.

More Warid Islam's questions See All
Similar questions and discussions