I'm working on a code that generates two lists. say for ex -
L1 = ['a', 'b', 'c']
L2 = [22, 21, 23]
How can i associate both the lists L1 and L2. I need to arrange L1 based on L2
For ex - if L2 is increasing L1 should be -
L1 = ['b', 'a', 'c']
if L2 is decreasing L1 should be -
L2 = ['c', 'a', 'b']
and so on..