Determine if List is within a Specific Range


I need help writing a python or dynamo script that will obtain the index in List 1 based on a specific range. The screenshot below hopefully will demonstrate what I am trying to achieve. Thank you!

Here’s a start but I can not figure out how to turn it into a loop to obtain all of the indices.

test.dyn (22.4 KB)

Check all your possibilities first and then check for the results that pass your condition.


Thank you Nick!