topics {' #'' ++''java''python'team {'developer''content writer''editor','tester'group topics union(teamgroup {'tester'' #''python''editor''developer'' ++''java''content writer'intersets(smethodreturns an intersection of two sets inters topics intersection(teaminters set(difference(smethodreturns set containing all the elements of invoking set but not of the second set safe topics difference(teamsafe {'python'' ++''java'' #'diff topics difference(groupdiff set(#clear(methodempties the whole set group clear(group set(operators for sets observe the following code to understand about operators for setspython set operations #creating two sets set set(set set(adding elements to set