Consider the following Python code snippet.
When the above program is executed, at the end, which of the following sets contains "this"?
python
- AOnly A
- BOnly B
- COnly C
- DA, C
Programming, Data Structures and AlgorithmsProgramming in PythonMCQ2 marks · −2/3 if wrongMedium
1A={"this","that"}
2B={"that","other"}
3C={"other","this"}
4while "other" in C:
5 if "this" in A:
6 A,B,C=A-B,B-C,C-A
7 if "that" in B:
8 A,B,C=C|A,A|B,B|C
9A GATE question every morning
One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.