Consider the following series which represents the distance between location a and locations b, c, d:
   a   
a  0
b  10
c  12
d  21
Now, what I'm trying to do is retrieve all location names that are within a certain distance from a.
For example, I would like to print out all variables that are within a 15 unit distance from a, excluding a, which would be b and c.
b
c
I've tried creating an empty list and then using a for loop to append to that list but to no avail, so I'm obviously missing something.
 
     
     
     
    