What is the output of print({'a'} <= {'a': 1, 'b': 2}.keys()) in Python?
print({'a'}
Correct answer
D. True
5 views
D. True
5 views
Dictionary views support set operations like subset checks.
Asked in: Python Interview Dictionaries
https://docs.python.org/3/tutorial/datastructures.html#dictionariesNot sure why the answer is D? Ask here and get an explanation.