I have a list of list of list in python, which looks like this :
my_list = [ [[1,2,3],[4,3,2]] , [[2,1,9],[8,1,2]] , [[5,4,3],[1,6,7]] , ...]
would like to retrieve the max value of the list and its three indices.
I have seen how to do it for a list of list :
max_value, max_index = max((x, (i, j))
for i, row in enumerate(my_list)
for j, x in enumerate(row))
but I don't understand how to adapt it for a 3rd list.
Another question : Is there an easy way to apply the following operation on all the elements of my list ?
my_list = my_list - my_list[0] * 2
mapfunction; it's designed for just this purpose.