Consider the Python code
A={"this","that"}
B={"that","other"}
C={"other","this"}
while "other" in C:
if "this" in A:
A,B,C=A-B,B-C,C-A
if "that" in B:
A,B,C=C|A,A|B,B|C
At the end, which of the sets contains "this"?
- (A) Only A
- (B) Only B
- (C) Only C
- (D) A, C
Source: GATE DA