How do i find a max of a several tuples compared parallely which is stored in a dictionary.
d = {'one':(2,9,6), 'two':(7,2,1), 'three':(1,5,12)}
So, tuples (2,9,6),(7,2,1) and (1,5,12) ‘zipped’ produces the max i.e. (7,9,12).
Please help to advice.
(edited for the numbers confusion)
I’m not fully sure from your question what you are looking for, but the zip part made me think that this is what you want:
This actually zips the tuples together (first element of first tuple with first element of second tuple and so on) and then finds the max for each of these zipped tuples.