I have this 2D list where the first element is the name of company the second is how much a senior developer gets salary and the third element is how many hours they work/week.
brands = [["Microsoft", "120", "38", "1124"], ["Apple", "150", "40", "1800"], ["Google", "110", "35", "1437"]]
I am trying to compare brands[0][1] with brand[1][1] and brands [2][1]
and print the lowest and highest wages in industry e.g "The lowest wage: Google, 110" "The highest wage: Apple,150"
, then printing lowest and highest working hours, for a short list it is ease with if and else statements but i am trying to make a general loop for in case of a much larger list.
I tried min() but it was unsuccessfully, i am sure there is a way to make it work though.