Mar-31-2020, 10:05 PM
def dist(self, sample) instead of def dist(sample, self)
When you call self.func(a, b, c) the actual function call is func(self, a, b, c).
When you call self.func(a, b, c) the actual function call is func(self, a, b, c).