Phạm Công Thành
New member
What will be the output of the following Python code?
A. {2,3}
B. Error, duplicate item present in list
C. Error, no method called intersection_update for set data type
D. {1,4,5}
Code:
>>> a={1,2,3}
>>> a.intersection_update({2,3,4,5})
>>> a
B. Error, duplicate item present in list
C. Error, no method called intersection_update for set data type
D. {1,4,5}