Ad
Code
Diff
  • class IsEqual:
        def __init__(self, k):
            self.k = k
    
        def __eq__(self, other):
            return 'yes' if self.k == other.k else 'no'
    • class IsEqual:
    • def __init__(self, k):
    • self.k = k
    • def __eq__(self, other):
    • return ['yes', 'no'][self.k != other.k]
    • return 'yes' if self.k == other.k else 'no'