If I have a list of directions:
LIST_A=['N', 'NNE', 'NE', 'ENE', 'E', 'ESE', 'SE', 'SSE', 'S', 'SSW', 'SW', 'WSW', 'W', 'WNW', 'NW', 'NNW']
plus a list of random directions:
LIST_B=['E','NNE','S','SSE','SW','N']
How do I arrive a list that looks at the directions in LIST_B and returns the opposite direction - plus one increment in the clockwise direction.
For example, the code would look at the first element in LIST_B ('E') - return the opposite direction ('W') plus one increment in the clockwise direction - which would be 'WNW'.
DESIRED_LIST=['WNW','SW','NNE','N','ENE','SSW']
Thankyou