The difference() method of a set compares two sets and finds all the elements which are not present in the second set.
In the example below Python compares animals with more_animals and returns all the elements which are present in animals but absent in more_animals.