def isHappy(self, n):
        lookup = {}
        while n != 1 and lookup not in n:
            lookup[n] = True
            n = self.nextNumber(n)
        return n == 1
dataset/ETHPy150Open kamyu104/LeetCode/Python/happy-number.py/Solution.isHappy/swapped operands of `not in`