Dear Dynamers,
I have two nested lists which are identical in size and format but with different items at each index. I want two get the shortest of each couple of indices at Level 2. But unfortunately the list minimum by key get one list and I cannot figure out a way to make it compare the proper indices.
I assume it needs python (as always…) but I don’t know how to write it.
Hi,
Sorry, I on’t understand very well.
Can you explain me better, you have 2 nested list of what elements (lines?)? For what output are you looking for?
LIST 1
0 List
line 1
line 2
1 List
LIST 2
Mistake… posting again
Try @L3 instead of 1 or 2.
Thanks a lot for the reply. But the graph you are suggesting gives me the 10 shortest lines from each list. Let me try to explain a little more the concept.
I have a room of 20 people. The people will leave from the closest door. For each one correspond two lines connecting them with each of the doors. By finding which of the two lines of each person is shortest I get which door they will leave from.
@D.CHRISTIDIS See if this works for you …
So much smoother. Thanks a lot Vikram_Guru






