Apr-17-2019, 12:14 PM
I reach two below list in my program. and l2 is derived from l1.
l1=[767, 665, 999, 895, 907, 796, 561, 914, 719, 819, 555, 529, 672, 933, 882, 869, 801, 660, 879, 985]
l2=[4, 8, 8, 4, 2, 6, 8, 4, 2, 12, 8, 3, 24, 4, 18, 4, 6, 24, 4, 4]
now I am going to print out the maximum from l2, and the same indexing number in l1 as an output.
and if I have same max in l2, I shoud print out the max l2. plus the bigger number in l1 as an output.
for example in my two list the correct output would be:
672 24
l1=[767, 665, 999, 895, 907, 796, 561, 914, 719, 819, 555, 529, 672, 933, 882, 869, 801, 660, 879, 985]
l2=[4, 8, 8, 4, 2, 6, 8, 4, 2, 12, 8, 3, 24, 4, 18, 4, 6, 24, 4, 4]
now I am going to print out the maximum from l2, and the same indexing number in l1 as an output.
and if I have same max in l2, I shoud print out the max l2. plus the bigger number in l1 as an output.
for example in my two list the correct output would be:
672 24