(self, val, l, d)
return 0
Utility funtion to see if val is within d of any
            items in the list l
Utility funtion to see if val is within d of any
            items in the list l
Utility funtion to see if val is within d of any items in the list l
def within(self, val, l, d):
        """Utility funtion to see if val is within d of any
            items in the list l"""
        for v in l:
            if abs(val-v) <= d:
                return 1
        return 0
def within ( self , val , l , d ) : for v in l : if abs ( val - v ) <= d : return 1 return 0