I have a multidimensional list in the format:
list = [[1, 2, 3], [2, 4, 2], [0, 1, 1]]
How do I obtain the maximum value of the third value
Just use max with a generator expression:
max
>>> lst = [[1, 2, 3], [2, 4, 2], [0, 1, 1]] >>> max(l[2] for l in lst) 3
Also, don't name your variables list, you are shadowing the type.
list