Question PRG-PY-0067
HardWhat is the output of this program?
class A:
def __init__(self): self.v = 1
def __eq__(self, o): return self.v == o.v
print(A() == A(), A() is A(), hash(A) is not None, [1, 2] == [1, 2] and (1, 2) != [1, 2])
- A.
True False True True
- B.
False False True True
- C.
Sign up free to see the answer and a step-by-step explanation.