QuestionQ51Verified/Data StructuresCopy linkReport a problemAsk AstroTutorSave questionReview this Python code: A'Jones', 'Johnson'B'Brown', 'Williams'C'Brown', 'Jones', 'Johnson', 'Williams'D'Johnson', 'Johnson', 'Williams', 'Jones', 'Jones', 'Brown'Show AnswerAnswerExplanationset.intersection() returns the elements present in both sets. The common elements of hr and it are Johnson and Jones; sets are unordered, so their displayed order is not significant.Learn morePython documentation: set.intersectionShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion