Question
What is the output of the following piece of code when executed in the python shell?a={1,2,3} a.intersection_update({2,3,4,5}) a
Answer: Option A
Was this answer helpful ?
The method intersection_update returns a set which is an intersection of both the sets.
Was this answer helpful ?
Submit Solution