Method signature:
difference(anotherSetObject_in)
Overview:
A difference set is returned - containing elements in this set which are not in the other set.
Parameters:
anotherSetObject_in : The set to be compared to produce the difference set.
Example:
# Example Python program that finds the difference between # Returns the set of elements that are not present in the set s2 # Returns the set of elements that are not present in the set s1 |
Output:
{1, 2, 3, 4} {6, 7} |