def nearlyEqual(lst1, lst2, tolerance=0.001):
 return all(((abs((i - j)) <= tolerance) for (i, j) in zip(lst1, lst2)))

def nearlyEqual ( lst1 , lst2 , tolerance = 0.001 ) : return all ( ( ( abs ( ( i - j ) ) <= tolerance ) for ( i , j ) in zip ( lst1 , lst2 ) ) )
tell whether the itemwise differences of the two lists is never bigger than tolerance .