What is the output of print({1, 2} <= {1, 2, 3}) in Python?
print({1, 2}
Correct answer
D. True
D. True
Sets support fast subset checks with <=.
Asked in: Python Interview Advanced
https://docs.python.org/3/library/index.htmlNot sure why the answer is D? Ask here and get an explanation.