def find(self, value):
        """
        Find if there exists any pair of numbers which sum is equal to the value.
        :type value: int
        :rtype: bool
        """
        return any(
            value-k in self.hash_map and (k-value != k or self.hash_map[k] > 1)
            for k in self.hash_map
        )
dataset/ETHPy150Open algorhythms/LeetCode/170 Two Sum III - Data structure design.py/TwoSum.find/swapped operands of `-`